Hi all,
I'm having trouble configuring indenting. My needs would seem, on the
face of it, relatively simple: I would like { and } to trigger
indenting and outdenting, and I would like >> and << to work for all
lines - including lines starting with # (comments). An example line
looks like this:
# comment
x = function()
{
code()
morecode()
}
I've tried using smartindent, but it seems impossible to configure
that to handle # using >>. I'm now trying to get cindent to work,
setting cinkeys-=0# to fix the hash issue, but now I am unable to
prevent vim from adding more indents whenever a line ends with '()',
(note that my language (R) does not use a semicolon, which is why this
gets triggered.
Is there a way to get this to work like I want to? I would really like
to continue using smartindent but fix the hash issue. Using cindent
bug fixing the '()' issue is my plan B. What would be my plan C?
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---