vim

Post Reply
Message
Author
nernd

vim

#1 Post by nernd »

hallo,
ich habe ein kleines problem:
wenn ich den vim oeffne und ':syntax on' eingebe, schaltet vim auf syntaxhighlight um...
wenn ich aber in der datei '~/.vimrc' die option: 'set syntax=on' schreibe, schaltet vim beim aufruf nicht auf syntaxhiglight um.

ich habe suse7.2 installiert.

bernd

Sebastian Ude

Re: vim

#2 Post by Sebastian Ude »

Trag mal einfach

:syntax on

in die ~/.vimrc ein.

bernd

Re: vim

#3 Post by bernd »

nun bekomme ich folgende meldung:
'no syntax items defined for this buffer'

Sebastian Ude

Re: vim

#4 Post by Sebastian Ude »

Arbeitest du im Ex-Mode ?

Andy E

Re: vim

#5 Post by Andy E »

Hi,
also meine .vimrc sieht so aus und es geht:

<blockquote><pre><font size="1" face="">code:</font><hr><font face="Courier New" size="2">
" We use a vim
set nocompatible
"
" Colo(u)red or not colo(u)red
" If you want color you should set this to true
"
let color = "true"
"
if has("syntax")
if color == "true"
" This will switch colors ON
so ${VIMRUNTIME}/syntax/syntax.vim
else
" this switches colors OFF
syntax off
set t_Co=0
endif
endif
" ~/.vimrc ends here
</font><hr></pre></blockquote>

Aber ein simples "syntax on" müsste auch funktionieren <img src="http://www.pl-forum.de/UltraBoard/Images/Wilk.gif" border="0" align="middle"> (Ohne Doppelpunkt)

Andy

Sebastian Ude

Re: vim

#6 Post by Sebastian Ude »

@ Andy

> (Ohne Doppelpunkt)

Hier gehts auch mit <img src="http://www.pl-forum.de/UltraBoard/Images/Happy.gif" border="0" align="middle">.

bernd

Re: vim

#7 Post by bernd »

so wie es aussieht laedt der befehl 'so ${VIMRUNTIME}/syntax/syntax.vim' die syntax-farben.
diesen hatte ich nicht in meiner '~/.vimrc'
jetzt funztes aber <img src="http://www.pl-forum.de/UltraBoard/Images/Wilk.gif" border="0" align="middle">

thnxs,
bernd

Post Reply