Thursday, November 4, 2010

Re: Anoying autocomplete functionality

On Wed, Nov 3, 2010 at 12:29 PM, statquant2 <statquant@gmail.com> wrote:
>
> Hi, I am experiencing problems with a vim functionality : when I edit a cpp
> file in INSERT mode pressing <CR> from a commented lign (// on front) will
> automatically insert another // on the following line.
>
> //comments [here in insert mode I hit <CR>
> // [there I automatically get //] [then if I hit <CR> again]
> // [there I automatically get // again]
>

to avoid this behavior, do the following:
:set formatoptions-=c
:set formatoptions-=r
:set formatoptions-=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: