On 15/02/07, frank wang <[EMAIL PROTECTED]> wrote:
Thanks for the help.My gvim version is 7.0. The files are edited by Matlab editor. gvim cannot automatically handle the ^M. No matter what file format I set. The only thing to do is repleace them with %s/\r/\r/g.
This ^M is hard to find in help and highly useful. Type ctrl-v then ctrl-m and you can easily search for CR. I often do :%s/<ctrl-v><ctrl-m>//g and for tabs: :%s/<ctrl-v><tab>/ /g