[Linux-disciples] Replacing carriage returns
Chung-chieh Shan
ccshan at post.harvard.edu
Sun Apr 18 23:22:33 EDT 2004
On 2004-04-18T15:53:01-0400, Stephen R Laniel wrote:
> This is probably a really simple question, but: how do I
> replace carriage returns in vim? I tried searching for <cr>
> or <CR>, and I did the Ctrl+v Ctrl+Enter trick; neither
> worked. What am I missing?
Do you mean what Vim shows as ^M? Ctrl-V Ctrl-M enters it.
If Vim opens a file in "DOS mode", it takes ^M^J as a line break, rather
than ^J as usual. In that case, change the line breaks to ^J with ":set
fileformat=unix". For more help, ":help fileformat".
--
Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
'I hope I -- I don't want to sound like I've made no mistakes. I'm
confident I have. I just haven't -- you just put me under the spot here,
and maybe I'm not as quick on my feet as I should be in coming up with
one.' -- President George W Bush, asked of his biggest mistake, 2004-04-14
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20040418/465db39e/attachment.pgp
More information about the Linux-disciples
mailing list