pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Use EMACS and the ModeLine
> OOO! I tied to upem the file with vi.
s/upem/open/, I guess.
> ALL the text lines ended wit(h) '^M'
Yep, then it's a "DOS file" with CR+LF (Carriage return and Line
Feed) as the two-character line ending. Unix text files use a
single line feed character as line ending.
> So I am changing ^m to something. Would that be ^D or \D ??
If you want to convert the file to Unix line ending from DOS line
ending format from within "vi", you can do
:%s/Ctl-VCtl-M//g
Where Ctl-V is "control-V" ("literal next" within "vi") and Ctl-M
is "control-M", i.e. CR. This will remove all the CR characters
from the file.
Regards,
- Håvard
Home |
Main Index |
Thread Index |
Old Index