[neomutt-users] [tuxic at posteo.de: Re: vim not recognzied anymore...?]

Richard Russon rich at flatcap.org
Mon Apr 9 13:16:51 CEST 2018


Hi Meino,

> suddenly neomutt starts nano default editor instead of vim

Ah yes, that's happened as part of my config cleanups.
It's important that all the variables work the same way.

NeoMutt is complicated.  Too complicated.
For some variables, there are lots of different ways to set them.

The editor could be set by:

- Environment variable $VISUAL
- Environment variable $EDITOR
- ~/.neomuttrc (your config file)
- /etc/neomuttrc (system config file)
- Code (default)

The environment variables come first so that you can override the config
file, e.g.

    EDITOR=nvim neomutt

If NeoMutt has suddenly started using 'nano', then most likely you have
an environment variable set.

    set | grep -e VISUAL -e EDITOR

Cheers,
    Rich / FlatCap
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 868 bytes
Desc: not available
URL: <http://mailman.neomutt.org/pipermail/neomutt-users-neomutt.org/attachments/20180409/acf72aae/attachment.sig>


More information about the neomutt-users mailing list