Removing ^M character GVIM windows
‘^M’ is end of line character in Linux, when you edit files created in Linux in other environments you might see the ‘^M’ character.
To remove ^M character in GVIM windows you should do:
:%s/^M//g
‘^M’ is CONTROL-V. Once you enter it will search your document and it removes all instances of ^M character from the file.