vim syntax highlight fails after debian upgrade
Hi,
there is no syntax highlight after I upgraded my debian, and I'm not sure what the problem is. This is my .vimrc file Code:
"Tabspacing thanks |
Try manually, just for testing. Fire up vim and type:
ESC : syntax on if that works, then most likely vim is reading the wrong file. |
Hi,
thanks for your help. I did as you said and got the following message: Error detected while processing /usr/share/vim/vim64/syntax/syntax.vim: line 42: E216: No such group or event: filetypedetect BufRead any ideas? |
Hmmm, that's a complicated thing. I think that vim was upgraded when you upgraded Debian, but that file was not created or something odd happened. As root, do:
mv /usr/share/vim/vim64/syntax/syntax.vim /usr/share/vim/vim64/syntax/syntax.vim_old then, change into that directory: cd /usr/share/vim/vim64/syntax/ Start a new file with vim (or maybe another text editor for now) called syntax.vim and paste the following: Code:
if !has("syntax") Let me know if it works. Regards! |
There is likely a problem with your /etc/vim/vimrc
check to make sure that your set runtimepath looks something like this: set runtimepath=~/.vim,/etc/vim,/usr/share/vim/vimfiles,/usr/share/vim/addons,/usr/share/vim/vim64,/usr/share/vim/vimfiles,/usr/share/vim/addons/after,~/.vim/after Notice how it is vim64, not vim63 anymore? It is looking for files in the wrong directory. Just change the 3 to a 4 and you are set. I had exactly the same problem and that is how I solved it. have a good day, |
Very thanks knowshun, this resolve my problem! :cool:
|
Thanks so much! It works now!:cool:
|
This was the problem with vim on recently upgraded etch boxes (from sarge)
The only difference being, vim is now at 70: Quote:
becomes: Code:
set runtimepath=~/.vim,/etc/vim,/usr/share/vim/vimfiles,/usr/share/vim/addons,/usr/share/vim/vim70,/usr/share/vim/vimfiles,/usr/share/vim/addons/after,~/.vim/after I found the vim version: Code:
09:04 rossey@somebox ~ $ ls -l /usr/share/vim/ |
All times are GMT -5. The time now is 11:25 AM. |