my vim show tab as --->, but does not show windows ^M character.
And , how substitute it in vim.
renew ============
I check my vimrc it is set fileformat=unix but when I open a dos file set ff is dos
my vim show tab as --->, but does not show windows ^M character.
And , how substitute it in vim.
renew ============
I check my vimrc it is set fileformat=unix but when I open a dos file set ff is dos
To remove ^M characters from you vim: In command mode type
%s/
followed by
ctrl+v and Enter.
It should then look like :
%s/^M
Lastly replace with blank character :
%s/^M//g
Old fashioned way - works even in vi:
vim -b filename
:%s/^V^M//g
:x
Explanations: