Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim how to comma align

Tags:

alignment

vim

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?

like image 520
anon Avatar asked Mar 18 '10 07:03

anon


1 Answers

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

like image 173
Nathan Fellman Avatar answered Dec 03 '22 18:12

Nathan Fellman