>
> 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:
Post a Comment