I have a python code something like this
file_out.write(str(i).strip()+"\t"+str(dict1[i]).strip()+"\n")
But when i try to recognize this with vim by saying on the file that was written.
:%s/\t/|/g
But it does not recognize the \t
I have a python code something like this
file_out.write(str(i).strip()+"\t"+str(dict1[i]).strip()+"\n")
But when i try to recognize this with vim by saying on the file that was written.
:%s/\t/|/g
But it does not recognize the \t
:%s/\\t/|/g
because the \ is itself a special char that needs escaping with \
I'd do :%s/^V^I/|/g
where ^V
means control-V and ^I
means control-I -- that's how you get a tab into your vim command!