LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   ^M in VIM (https://www.linuxquestions.org/questions/linux-desktop-74/%5Em-in-vim-496668/)

dlublink 10-29-2006 01:58 PM

^M in VIM
 
Hello,

I am using VIM to edit some files that contain ^M. I don't want to run a search and replace every day.

Can VIM be setup to hide those ^M characters and work on the file and add ^M characters when necessary?

Thanks,

David

rednuht 10-29-2006 05:20 PM

I do not know how to do it inside vim but this article explains how to do it before running vim
http://www.cyberciti.biz/faq/howto-u...x-text-format/

michaelk 10-29-2006 05:48 PM

The command to convert a DOS file to unix within vi:
set ff=unix


All times are GMT -5. The time now is 09:45 PM.