我的文字例如:如何避免第二次校準受第一次校準的影響?
this is my text,this is,this is my text
this, this is my,this is my,this is text
我用Tabular插件對齊文本。
當我想在第一次和一個空格'\s'
的第二次發生對準我用這些行:
Tabularize /^\(.\{-}\zs\s\)\{1}/l0
Tabularize /^\(.\{-}\zs\s\)\{2}/l0
但我注意到,第一對齊,以對齊, 但第二次添加空格對齊受到這些額外空間的影響,並且不合適。
我該如何避免這種情況?
(我希望我自己清楚)
編輯:
這是我所期待的:
this is my text,this is,this is my aatext
this, this is my,this is my,this is rtext
這是結果:
this is my text,this is,this is my aatext
this, this is my,this is my,this is rtext
EDIT2:
這是我的例子與> = 2位:
this is my text, this is,this is my aatext
this, this is my, this is my, this is rtext
適應在他的回答下面尼基塔Kouevda提出的代碼:我希望
Tabularize /\(^\(\(\S*\s\{2,}\)\{0}\|\(\S*\s\{2,}\)\{2}\)\)\@<=\S*\zs\s/l0
:
this is my text, this is,this is my aatext
this, this is my, this is my, this is rtext
成果:
this is my text, this is,this is my aatext
this, this is my, this is my, this is rtext
您是否介意提供一些樣本,以顯示與目標輸出相比現在正在執行的操作? –
@Denomales當然,完成:) – Reman