[UCLA-LUG] Getting rid of "^M"s in vi
Joshua Uziel
uzi@linuxcare.com
Sat, 8 Jul 2000 16:39:33 -0700
* Denis <kiev78@pacbell.net> [000708 16:21]:
> > Another way (that I use, and I think it's more direct) is to do
> >
> > :%s/^V^M//g
>
> i may be mistaken, but i think this is a VIM thing. i am not sure if
> Vi has ^V. i am pretty sure it does not. also, not all distros ship
> with vim. debian, for example, does not use ( as far as i know) vim as
> default editor.
I'm pretty damn sure that ^V is a Unix-ism... not a Vim-ism.
Have you tried? I believe I recall using it with standard Solaris
vi in the past...
Besides... you can use it in a shell prompt. I've used it quite
a bit in the past...
--
Joshua Uziel, Senior Linux Consultant, Linuxcare, Inc.
415.354.4878 tel, 415.701.7457 fax
uzi@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.