I upgraded my ubuntu to 11.04 and my gvim got all messed up. I am basically starting from scratch and need some help. Upon recommendation, I am starting to move everything related to vim (plugins and vimrc) into /usr/share/vim/vimfiles
after
autoload
colors
doc
ftpplugin
gvimrc (file)
nerdtree
plugin
snippets
syntax
vimrc (file)
vimrc.dpkg-old (file)
vimrc.tiny (file)
I also have a .vimrc file in /home/laptop/.vimrc This file actually contains the settings/mappings that I've added
:set runtimepath fetches:
runtimepath=~/.vim, /usr/share/vim/vimfiles/vimfiles,
/usr/share/vim/vimfiles, /usr/share/vim/vimfiles/vimfiles/after,
~/.vim/after
I have no folder like the one mentioned above /usr/share/vim/vimfiles/vimfiles
Questions:
Why are there two vimrc's? should I swap contents of /usr/share/vim/vimfiles/vimrc with /home/laptop/.vimrc?
Errors
Error detected while processing /home/laptop/.vimrc
line 6
E484: Can't open file /usr/share/vim/syntax/syntax.vim
Line 6 is:
syntax on
my /usr/share/vim/vimfiles/syntax originally only contained snippet.vim, however, the /usr/share/vim/vim73/syntax folder contained many many other files. like gdb.vim, jsp.vim, groovy.vim, libao.vim...etc (more than 60 files)
so I copied all of those files to /usr/share/vim/vimfiles/syntax but still error is there
how can I get back my syntax highlighting?
Update
- had vim73_backup and now changed it back to
/user/share/vim/vim73 :set rtp?does not have vim73 (as shown above):echo $VIM $VIMRUNTIMEshows/usr/share/vim/vimfiles /usr/share/vim/vimfilessince this is wrong..how do I get vim73 here?
syntax oncommand was not working and why yoursudo ln -s ...got it working.:help $VIMRUNTIMEexplains why it is set to the same as $VIM.:help $VIMexplains how $VIM is set, but I can't tell from the information we've seen so far how it got set to/usr/share/vim/vimfiles. That's wrong. Given the other information you've given, your $VIM should be/usr/share/vim. Did you set $VIM yourself? What happens if you start vim asVIM= vim -u NONEthen execute:echo $VIM? – garyjohn May 13 '11 at 4:40