On Jul 21, 4:33 am, Rahul <[email protected]> wrote: > Is syntax highlighting and auto indentation handled differently by > vim? I know that for most languages my files are syntax highlighted as > well as if I visual select and press '=' then I can get a nice- > looking indentation too. Indentation and syntax highlighting are two separate functions..
If the indent rules are similar to C/java/C++ etc, you can do :set cindent and work with that. In simple cases, you can even work with :set ai For more information (especially if you are planning to write your own indent script) see :help indent.txt and :help indent-expression --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
