Friday, October 28, 2011

Formatting C++ files

Hi,
I am going trough many C++ headers and need to do some formatting.

The first I need to do is related to C++ headers:

a lot of them look has lines like this

<some white space>void<some white space>AFunction();

where the <some whitespace> is just some whitespace.

that I need to convert to a more fixed and defined format:
<two tabs>void<8 tabs>AFunction(); or

<8 spaces>void<32 spaces>AFuntion();

I wonder how do I create a substitute expression for the above?

cheers,
Totte


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: