I currently have this:

autocmd BufEnter * :%s/[ \t\r]\+$//e    " get rid of the pesky ^M

However, it gives me an error I have to "enter" through when I open a readonly file.

I want to be able to turn that off when the file is RO.

:Robert

Reply via email to