首先但并非最不重要在这里发表。我想要一些帮助,我现在正在执行重复任务。有:如何在Vim中用一种方法替换邮件列表中尖括号内的不需要的空格?不幸的是,我找不到一个聪明的方式来处理,我使用\zs
和\ze
功能挣扎了很多,前瞻性的正则表达式,但没有一个令人满意的解决方案。有一个例子:删除尖括号之间的不需要的空格
Bilbo Baggins <bilbo. baggins @ middleearth.net>; Galadriel < galadriel @middleearth.net >; Daeron <[email protected]>; Gandalf < gandalf @middleearth.net>; Thorin II Oakenshield < thorin.oakenshield @ middleearth.net >; Aragorn < aragorn @ middleearth.net
和删除不需要的空格会导致:
Bilbo Baggins <[email protected]>; Galadriel <[email protected]>; Daeron <[email protected]>; Gandalf <[email protected]>; Thorin II Oakenshield <[email protected]>; Aragorn <[email protected]
如果有人可以帮助我将非常感激。
看看此http://vim.wikia。 com/wiki/Remove_unwanted_spaces – dmitryro