On 01-07-30 Andrew Sione Taumoefolau wrote:
> > I've you are using vim use:
> > set textwidth=72
> > in your .vimrc to wrap te lines to a max of 72 char.
> Probably better not to do it that way, unless you're okay with Vim
> wrapping ALL documents you edit with it at 72 characters. I've got a line
> in my .muttrc that goes something like this:
> set editor = "vim -c 'set tw=72'"
> ...which does the trick, but I think there's a cleaner way to do it.
An easier way would be to use the autocmd feature of vim. I use it for
example this way:
|autocmd BufNewFile,BufReadPost reportbug*,mutt-* set textwidth=72
With the help of this autocommand vim will always do a wrap line to 72
characters maximum if I write a mail or a new bug report.
Christian
--
Debian Developer (http://www.debian.org)
1024/26CC7853 31E6 A8CA 68FC 284F 7D16 63EC A9E6 67FF 26CC 7853
Attachment:
pgpfK0v1IoQzy.pgp
Description: PGP signature