Bug#373696: vim: Default $VIMRUNTIME set incorrectly

Adam Collins m104 at nutthouse.us
Thu Jun 15 05:23:43 UTC 2006


Package: vim
Version: 1:7.0-017+6
Severity: important

Vim reports the following when run:

  Error detected while processing /home/adam/.vimrc:
  line   15:
  E484: Can't open file /usr/local/share/vim/syntax/syntax.vim
  Press ENTER or type command to continue        

Backspace key doesn't work, and numerous other small problems.
Possibly due to incorrect default runtime directory.
Output of ":version" :

  <snip>
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/local/share/vim"
  <snip>

The last line indicates the culprit.
Workaround is to add this to your shell config file (~/.bashrc):

  export VIMRUNTIME=/usr/share/vim/vim70

and restart your shell or X session.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages vim depends on:
ii  libc6                        2.3.6-15    GNU C Library: Shared libraries
ii  libgpmg1                     1.19.6-22   General Purpose Mouse - shared lib
ii  libncurses5                  5.5-2       Shared libraries for terminal hand
ii  vim-common                   1:7.0-017+6 Vi IMproved - Common files
ii  vim-runtime                  1:7.0-017+6 Vi IMproved - Runtime files

vim recommends no packages.

-- no debconf information




More information about the pkg-vim-maintainers mailing list