On Wed, Jun 14, 2006 at 10:23:43PM -0700, Adam Collins wrote: > Vim reports the following when run: [...] > E484: Can't open file /usr/local/share/vim/syntax/syntax.vim [..] > Workaround is to add this to your shell config file (~/.bashrc): > export VIMRUNTIME=/usr/share/vim/vim70 > and restart your shell or X session.
I have been hit by this bug this morning on a train with no internet connection, and couldn't work out this work-around. But I can't live without a fully working vim, so I did it the hard way. I resorted using vim to edit the vim binary, to correct the string inside it: cp `which vim` vim~ vim `which vim` /\/local\/ R/share/vim<ESC> Pad the rest with nulls using r^V^@ It worked perfectly, and it was a nice example of using vim to edit itself :) Ciao, Enrico happy meta-vimmer -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]>
signature.asc
Description: Digital signature