[linux-l] vim fragen

Steffen Dettmer steffen at dett.de
Mo Nov 11 23:45:34 CET 2002


* Soeren Sonnenburg wrote on Mon, Nov 11, 2002 at 14:17 +0100:
> On Mon, 2002-11-11 at 13:54, Henrik Hempelmann wrote:
> > Soeren Sonnenburg wrote:
> > > 1) Wenn ich mit vim eine datei bearbeite, haengt er als letztes zeichen
> > > einen zeilenumbruch (0x0a) an.
> [...]
> > Wenn sonst nix hilft, 'vi -b' aufrufen.
> > Mit -b(inaer) arbeitet der vim das im gigo-Modus.
> 
> Danke fuer die schnelle antwort.
> habs ausprobiert... geht nicht. ich krieg das '\n' nicht mehr weg :-/

Soviele Antworten aber kein ":help eol"? Dann hier: 


'endofline' 'eol'       boolean (default on)
                        local to buffer
                        {not in Vi}

        When writing a file and this option is off and the 'binary' option
        is on, no <EOL> will be written for the last line in the file.  This
        option is automatically set when starting to edit a new file, unless
        the file does not have an <EOL> for the last line in the file, in
        which case it is reset.  Normally you don't have to set or reset this
        option.  When 'binary' is off the value is not used when writing the
        file.  When 'binary' is on it is used to remember the presence of a
        <EOL> for the last line in the file, so that when you write the file
        the situation from the original file can be kept.  But you can change
        it if you want to.


Also, binary *und* ":set noeol". Darf man mal fragen, welche Textdateien Du
ohne EOL haben möchtest?

oki,

Steffen

-- 
Dieses Schreiben wurde maschinell erstellt,
es trägt daher weder Unterschrift noch Siegel.




Mehr Informationen über die Mailingliste linux-l