Linda W 写道: > > I was wondering if there was a way to do the same according to a change > of the 'syntax'. >
Two solutions: plugin, or an external filter. It is possible if you write a vim plugin to do this. But if you want this feature only for C, the GNU indent utility could do that. you can call it within vim using :%!indent or you can visually select a particular area to do the indent. (The GNU indent breaks the line according to the syntax.) So you may also want to write an external utility as a filter like gnu indent. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
