Here is how you remove that annoying ^M character in the file. This happens if you Copy paste edit something in windows and open it in unix (my case ubuntu) :%s/{Ctrl+V}{Ctrl+M}//{Enter} where {Ctrl+V }{Ctrl+M} stands for, you must press Ctrl+V and then Ctrl+M Posted via email from What I See