On Thu, Jan 15, 2009 at 8:46 AM, Frans Grotepass
<fmgrotep...@yahoo.co.uk> wrote:
> Sorry, it is set in ~/.vimrc
>
> cinoptions is set to ":0,(0". The ( then behaves like follows:
>
> blablabla blabla (
>                  blablaA
> with cinoptions set to "" and cindent on, it becomes
> blablabla blabla (
>     blablaA

If you just have a plain line in your .vimrc for 'set cinoptions',
then that will apply across all filetypes.  The standard way in vim to
set options for a specific filetype is to create a filetype plugin.
This is just a simple .vim file in ~/.vim/ftplugin/<filetype>.vim.  In
your specific case, you would want to delete the cindent settings from
~/.vimrc and put them in ~/.vim/ftplugin/c.vim.  (If you're using
cindent on C code.)

This is all more fully described under ":he ftplugin"

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to