
我在 vim 中有一個列列表:
column_foo
, column_foobar
, column_really_way_to_long
, column_prefixfoo_prefixbar_really way to long
我希望這些被填充並連接起來,看起來像這樣
, foo , bar , baz , quz_quadazzel
, foobar , moono , bleh , bleh
我可以為此執行簡單的命令序列嗎?另外,我想知道如何將視覺塊填充到特定數量的字元。
foobar
, baz
, z
, really_long_column_of_stuff
即,我怎樣才能正確地使所有的columns length(' , really_long_column_of_stuff')
答案1
如果你使用的是 Linux,這個巧妙的小技巧將會運作:
%!column -t