I have a text file which has two TABS consecutively. I need to insert a SPACE between those two TABS.
I am working on vi editor.开发者_运维知识库 Can anyone tell me how to do that.
Use :
:%s/\t\t/\t \t/g
Do you want to perform multiple substitution on each line?
To globally replace all instances of \t\t with \t \t
:g/\t\t/s//\t \t/g
or to replace the first instance on every line:
:g/\t\t/s//\t \t
精彩评论