I've just noticed that today after an update that contained the vi package, possibly other related ones, that gvim gives me an error message upon start, saying:
Error detected while processing /usr/share/vim/vim72/menu.vim: line 155: E121: Undefined variable: paste#paste_cmd E15: Invalid expression: 'vnoremenu <script> &Edit.&Paste<Tab>"+gP^I' . paste#paste_cmd['v']
Help! After some bug hunting on google it seems like the recommended fix is to basically remove and reinstall vim, but this hasn't helped.
Right now gvim starts but because of this error I'm missing syntax highlighting and probably many other features.
I don't have that problem. I don't even have a vim72 directory in the /usr/share/vim/
Are you on i686?
Is there are .pacsave/.pacnew for that menu.vim file?
Thanks for the replies.
@sand_man, yup I'm on i686, and no .pacsave/.pacnew files anywhere in there
@mutlu_inek, thanks, I checked out the list, and will sit back and wait till it is fixed
you probably saw this on the ML, but for the time being, i fixed the issue with this:
sudo ln -s /usr/share/vim/vim72/ /usr/share/vim/vimcurrent
That works for now, but according to the buglist it seems they're removing the vimcurrent link for good.
Best bet is to add this to the top of your vimrc until they apply the fix to update the default runtimepath:
set runtimepath=~/.vim,/usr/share/vim,/usr/share/vim/vim72 syntax on
Last edited by Square (2009-07-23 20:50:58)
I actually didn't realise this was the [testing] forum. I'm not running testing so my apologies.
vimcurrent solution isn't a good one, and vim72 directory using isn't neccsary too, i think so. I've just built my vim-script packages with VIMRUNTIME using in /usr/share/vim only, it must work everywhere
Thanks guys, that will help until it is sorted out