On Wednesday, June 12, 2013 9:49:22 AM UTC-5, jun wang wrote:
> hi:
>
> I set
>
>
>
> set formatoptions-=o
>
> or
>
> set formatoptions=crql
>
> or
>
> autocmd BufRead *.c set formatoptions-=o
>
> in _vimrc file, it all don't work
>
>
>
> why?
>
Probably because you have filetype plugins turned on, and the C filetype plugin sets formatoptions for you.
Use "autocmd FileType c" or a "set formatoptions" command in ~/.vim/after/ftplugin/c.vim instead to override the ftplugin settings.
http://vimhelp.appspot.com/vim_faq.txt.html#faq-26.3
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Wednesday, June 12, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment