![](/img/trans.png)
[英]How to tabularize a text output with new lines into a dataframe?
[英]Vim Tabularize multiple lines
我如何使用Vim制表符来对齐以下文本
text1 text2 temp_line0, text1 text2 temp_line1, text1 text2 [1:0] temp_line2, text1 text2 [15:0] temp_line5, text1 text2 temp_line6, text1 text2 [1:0] temp_line7, text1 text2 temp_line8, text1 text2 [23:0]temp_line9
为了这样的事情..
text1 text2 temp_line0, text1 text2 temp_line1, text1 text2 [1:0] temp_line2, text1 text2 [15:0] temp_line5, text1 text2 temp_line6, text1 text2 [1:0] temp_line7, text1 text2 temp_line8, text1 text2 [23:0] temp_line9
基本上我想对齐行中“]”之后的所有内容
您可以使用github上可用的Tabular插件: https : //github.com/godlygeek/tabular
但是,您的文本在每一行中都没有真正的分隔符,因此它将失败。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.