Sunday, November 29, 2009

How to beautify/tablize some C code

Hi,

For example, I have some C code:
helloa;
helloab;
hellofgh;

Is there a way to change the C code into the form, which looks like:
helloa ;
helloab ;
hellofgh ;
Where the semicolon is at a "TAB" position. So that I can use
block-insert to insert some code, such as:
helloa ("helloa ");
helloab ("helloab ");
hellofgh ("hellofgh ");

Thanks in advance.

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

No comments:

Post a Comment