On 2012-07-19, sinbad wrote:
> how to auto align the following multiline c macro.
>
> #define dosome(x,y)\
> x.something1 = y.somethingelse2\
>
> i want this to become
>
> #define dosome(x,y) \
> x.something1 = y.somethingelse2\
>
> is there any easy way to do that.
Install Dr. Chip's Align plugin,
http://www.vim.org/scripts/script.php?script_id=294
select the lines of interest and type
\tml
That will make your macro look like this:
#define dosome(x,y) \
x.something1 = y.somethingelse2 \
If you don't want the space between the '2' and the '\', you may
have to look at the \tml mapping and make a modified version.
Regards,
Gary
--
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:
Post a Comment