开发者

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"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜