[Linux-disciples] Replacing carriage returns
Stephen R Laniel
steve at laniels.org
Sun Apr 18 23:38:35 EDT 2004
On Sun, Apr 18, 2004 at 11:22:33PM -0400, Chung-chieh Shan wrote:
> 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".
Fortunately -- not the usual case for me with vim -- I knew
all of the above. Searching for \n, as Adam suggested, did
the trick. Thanks for all your help, guys.
--
``[Y]ou know as well as we do that right, as the world
goes, is only in question between equals in power,
while the strong do what they can and the weak suffer
what they must.''
-http://crookedtimber.org/archives/001691.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20040418/b0f4c35f/attachment.pgp
More information about the Linux-disciples
mailing list