2

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?

slm
  • 369,824
Amanda
  • 1,759
  • 2
  • 14
  • 26

1 Answers1

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"
Amanda
  • 1,759
  • 2
  • 14
  • 26
slm
  • 369,824
  • 1
    And 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
  • @dirkt let's see if it works for the OP first – slm Jul 17 '18 at 11:14
  • 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