2
1
Emacs has something called message-mode
(type M-x message-mail
) that can be used to compose emails. This mode helps one to automatically wrap text to 72 columns .. keeping quoted marks properly.
Is there such a thing for VIM?
I am switching from Emacs to VIM and message-mode is the only thing that needs to be migrated.
NOTE: I don't want VIM to send emails; for that .. I use some other client. I only want to edit emails in VIM.
There's the following code in ftplugin/mail.vim:
if &tw == 0 ; setlocal tw=72; endif
- which should set this up properly. – blueyed – 2011-02-02T10:24:17.927html documentation at vim.org: http://www.vim.org/htmldoc/filetype.html (may not be up-to-date for v7.x)
– quack quixote – 2009-10-21T12:07:30.243But it does not automatically wrap long lines to fit the 72 cols. – Sridhar Ratnakumar – 2009-10-21T12:14:33.083
What is the value of 'textwidth'? The default setting for mail is 72 which should cause your text to wrap near column 72. Also check the value of 'warpmargin'. – Convict – 2009-10-22T10:00:45.780
I had to use
gq
to autowrap the text. – Sridhar Ratnakumar – 2009-11-12T22:17:39.270