On So, 08 Mai 2022, 'Tim Ye' via vim_use wrote:
> On 2022-05-08 10:34+0200, BPJ wrote:
>
> > You also have to make sure "t" is in 'formatoptions' (see :h
> > formatoptions). I forgot that because I always have it. Sorry!
>
> Yes I have something like the following setting in my muttrc:
>
> set editor = "vim -c 'set comments+=nb:> nocp bg=light tw=72 spell ft=mail formatoptions+=w'"
You do not need that. Make sure you have :filetype plugin on in your
vimrc, then Vim will automatically detect that you are writing a mail
from mutt and sets some sensible options. Check
$VIMRUNTIME/ftplugin/mail.vim for what those are.
This already sets a lot of useful defaults. If you need others, you can
add additional options by writing them into your
~/.vim/after/ftplugin/mail.vim (create non-existing directories).
Thanks,
Chris
--
F: Was ist golden und fliegt durch die Luft?
A: Maikäfer mit Goldzahn.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220508084555.GE3822443%40256bit.org.
Sunday, May 8, 2022
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment