line editor keybindings

Christian Brabandt cblists at 256bit.org
Tue Mar 13 10:35:29 UTC 2018


On Di, 13 Mär 2018, Florian Lohoff wrote:

> On Tue, Mar 13, 2018 at 11:13:08AM +0100, Marco Dickert wrote:
> > On 2018-03-13 20:50:20, Erik Christiansen wrote:
> > > On 13.03.18 10:09, Andreas.Mueller at Biologie.Uni-Osnabrueck.DE wrote:
> > > >   can I switch the editor key bindings to the vi style ?
> > > There is better than that - you can use vim as the mutt editor, with
> > > this line in ~/.muttrc:
> > > 
> > > set editor=vim
> > 
> > You also may want to use a mutt-dedicated vim configuration, like I do:
> > 
> > ----
> > set editor="/usr/bin/vim -c ~/.mutt/vimrc"
> > ----
> 
> As an alternative:
> 
> au BufRead,BufNewFile /home/flo/tmp/mutt-* set noai tw=72 ft=mail spell
> 
> Obviously you need to change you path for your setup.

Even better:

Make sure to have a `:filetype plugin on` in your .vimrc
and then drop all your mutt related settings below 
~/.vim/ftplugin/mail.vim
(create non-existent directories).

Then you only need `:set editor=vim` because Vim already recognizes mutt 
mails as filetype=mail.

See also here:
https://www.256bit.org/~chrisbra/cms/vim_as_e-mail_editor.html


regards,
Christian
-- 
MS-DOS must die!


More information about the Mutt-users mailing list