tags:

views:

217

answers:

2

I have a bunch of code of the form:

someVector.push_back(Foo("some name", 1.0, 3.1415926);
someVector.push_back(Foo("different length name", 89.0, 2.717);
... 20 more entries

I want sufficient space to be inserted so that my code is comma aligned, i.e. the "1.0," 's comma and the "89.0"'s comma are aligned -- is there builtins to do this?

+5  A: 

Use Vim's Align plugin. It does exactly that.

Nathan Fellman
+2  A: 

With the Align plugin it's just simple: select the lines in visual mode and type \t,

vbd