Monday, June 11, 2012

Re: 'gq' not working as expected in Vim 7.3

Hi Trey!

On Mo, 11 Jun 2012, Trey Sizemore wrote:

> This was previously working well, but is no longer. I use vim (v7.3)
> on my Mac and as my editor on mutt.
>
> Now when I use 'gqG' or 'gq}' when replying to a message in mutt, it
> no longer respects the reply '>' characters and wraps everything in
> one big glob when I'm just trying to wrap excessively long lines.

please show us the output of :verbose :set fo? ft?

The 'fo' option should include the 'c' and also the 'q' flag. See
:h fo-table for the description of each flag.

The simplest solution should be to make sure your .vimrc contains a line
like:
filetype plugin on

and then create a file like ~/.vim/after/ftplugin/mail.vim (create
directories that don't exist yet) and add the line:
setlocal fo+=tcq

to it. That should work.


regards,
Christian
--
Die Zeit ist schlecht? Wohlan! Du bist da, sie besser zu machen.
-- Thomas Carlyle

--
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

No comments: