very simple, just set cindent in your c.vim in your ftplugin folder. autoindent is different from cindent.
On 12月25日, 下午7时13分, Teemu Likonen <[email protected]> wrote: > Henry (2008-12-24 18:30 -0800) wrote: > > > It doesn't seem to understand the nested if statements in my code. Is > > there a way to do this in Vim? > > There is a script which describes itself as "a replacement for the tcl > indent file that ships with vim." I don't know about TCL and haven't > tried the script but you can find it here: > > http://www.vim.org/scripts/script.php?script_id=1717 > > It seems to require syntax extension: > > http://www.vim.org/scripts/script.php?script_id=1603 --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
