开发者

Vim: Aligning columns by whitespace

开发者 https://www.devze.com 2023-02-06 12:52 出处:网络
what for a regex is needed for formating some lines from 0 0 0 00 00 00 000 000 00 0 开发者_如何学编程00 000

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

精彩评论

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