vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] inimode and line endings


From: Thomas Dickey
Subject: Re: [vile] inimode and line endings
Date: Mon, 6 Jun 2011 20:16:35 -0400 (EDT)

On Mon, 6 Jun 2011, address@hidden wrote:

We have a few config files on our unix systems that are *.ini style files but
these files have traditional UNIX LF line endings.  When the files are opened
in vile the status line shows [inimode crlf] and the I need to force vile to
write the files with the correct line endings using the set-rs-lf command or
setting nodos.

Putting the following in my .vilerc did not help:

~with define-submode ini
   rs=lf
~endwith

Also tried putting nodos in the submode as well... no effect.

However this setting at the bottom of the file does work:

# vile:rs=lf:

But not all my files have those lines and other users will forgot to do that.
It seems that vile should not automatically assume CRLF endings for files on
UNIX systems even for *.ini files. Is there a way to change this behavior?

You could delete the majormode, e.g.,

remove-majormode ini

Recreating it (with the same name) seems to not work properly, though show-majormodes shows the expected result (which, given that .vilerc seems to be processed before the suffix-matching takes place), looks like a bug. I'll add a to-do to see why.

(still bogged down in lynx...)

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]