Vim: Aligning columns by whitespace
what for a regex is needed for formating some lines from
0 0 0
00 00 00
000 000 00
0 开发者_如何学编程00 000
000 00 0
000 0 000
to
0 0 0
00 00 00
000 000 000
0 00 000
000 00 0
000 0 000
?
TIA
Watch this:
There are times when you can improve the readability of your code by lining up the elements on neighbouring lines. In this episode, I demonstrate how this can be achieved using the Tabular plugin...
For such tasks, I'd take a look at "DrChips Alignment Tool for Vim"
精彩评论