Thursday, February 16, 2012

Re: Turning off auto-comment...yes, already tried that

On Feb 16, 1:25 am, Gary Johnson <garyj...@spocom.com> wrote:
>
> I believe the problem is in $VIMRUNTIME/ftplugin/perl.vim, line 15:
>
>     setlocal formatoptions+=crq
>
> That line is executed whenever you open or create a Perl file.  The
> solution is to put
>
>     setlocal fo-=r
>
> in the (new) file ~/.vim/after/ftplugin/perl.vim.
>

Or, since the OP wants to turn off this feature "irrevocably,
permanently, for all time, and for all mankind" it's probably better
to do it for all filetypes, in the .vimrc:

autocmd FileType * setlocal fo-=r

Probably you'll also want to remove the 'o' flag as well:

autocmd FileType * setlocal fo-=r fo-=o

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