I'm setting up a brand new computer and one quirk that I can't figure out is that neomutt is using nano as its default editor. My default editor is vim. Why wouldn't neomutt respect that?
Asked
Active
Viewed 1,943 times
2
1 Answers
3
neomutt should follow the table of priorities in their documentation to decide what editor to use.
You can set the editor explicitly by adding export EDITOR="/usr/bin/vim" to your .bashrc.
Alternatively, if you only want to set the editor for neomutt, you can add the following to ~/.neomuttrc:
set editor="/usr/bin/vim"
-
1And to add to that: The
export EDITOR=...line should go into your shell profile (other programs might use it, too). – dirkt Jul 17 '18 at 06:29 -
-
Setting the editor explicitly in .bashrc worked to change the editor, but I'm still working on figuring out why it was defaulting to nano in the first place. – Amanda Jul 17 '18 at 14:30
set editororset visualsomewhere in the(neo)?muttconfig? – thrig Jul 16 '18 at 23:17vimas your default editor? what does your shell show withecho $EDITOR? – Tim Kennedy Jul 16 '18 at 23:18.bashrcbut it wasn't. Not sure whyedit whatever.txtwas defaulting to vim and neomutt to nano, but nothing was set explicitly. – Amanda Jul 17 '18 at 00:45$VISUALwill take priority over$EDITOR– steeldriver Jul 17 '18 at 01:07$VISUALwasn't set either and per the documentation it should default tovi. So I still don't know where it was getting nano from. – Amanda Jul 17 '18 at 01:15