Bug#373696: vim: Default $VIMRUNTIME set incorrectly

Enrico Zini enrico at enricozini.org
Thu Jun 15 20:31:28 UTC 2006


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 <enrico at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20060615/21f72954/attachment-0001.pgp


More information about the pkg-vim-maintainers mailing list