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
vim
Re: vim
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
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
Re: vim
@ Andy
> (Ohne Doppelpunkt)
Hier gehts auch mit <img src="http://www.pl-forum.de/UltraBoard/Images/Happy.gif" border="0" align="middle">.
> (Ohne Doppelpunkt)
Hier gehts auch mit <img src="http://www.pl-forum.de/UltraBoard/Images/Happy.gif" border="0" align="middle">.
Re: vim
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
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