Jump to content
xisto Community
Sign in to follow this  
jedipi

Vim Syntax Highlight Problem

Recommended Posts

I got a problem with vim syntax highlight.When i type "syntax on" in the command mode , the vim return an error "can not open file /usr/share/vim/vim61/syntax/syntax.vim".then I found that I really don't have this file or directory. Because I use vim63 actually. The correct path will be "/usr/share/vim/vim63/syntax/syntax.vim". Am I right??I guess i should edit the path somewhere to solve the problem, but i can't find it.Please help me!! What i should do.Thank you very much!

Share this post


Link to post
Share on other sites

does the file "/usr/share/vim/vim63/syntax/syntax.vim" exist ?

is so, you ca use a symbolic link.

cd /usr/share/ln -s vim63 vim61

next time an application tries to access " /usr/share/vim/vim61/syntax/syntax.vim" it will be routed, ad filesystem level to " /usr/share/vim/vim63/syntax/syntax.vim"

this is more of a quick solution, a better way may be to find an incorrect config file, and correct it. look for vim config files hidden in you home directory, or in /etc/

Share this post


Link to post
Share on other sites

cd /usr/share/ln -s vim63 vim61
Thanks for your help.

yes, "/usr/share/vim/vim63/syntax/syntax.vim" does exist in my system.

Therefore, the command "ln -s vim63 vim61" is really helpful.
And problem was fixed.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.