Bug#337825: Option runtimepath mentions same directory thrice

Bertram Scharpf debian at bertram-scharpf.de
Sun Nov 6 18:43:55 UTC 2005


Package: vim-common
Version: 1:6.4-001+2
Severity: important


`/etc/vim/vimrc' says:
  set runtimepath=...,/etc/vim,/usr/share/vim/vimfiles,...

But the latter is a symlink to the former. So, when the
user creates the `plugin' subdirectory and puts scripts into
it, they are sourced twice and every "function" and
"command" without an appended bang ("func!", "com!") yields
an ugly error message.

Simply create a file `/etc/vim/plugin/test.vim' and put into
it:

--------------------
function s:SomeFunc()
  echo "Some message."
endfunc
command SomeFunc   call s:SomeFunc()
--------------------

The directory `/usr/share/vim/vimfiles' is even mentioned
twice.

This bug does appear in may earlier versions of the package.


-- 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.4.27-2-386
Locale: LANG=de_DE at euro, LC_CTYPE=de_DE at euro (charmap=ISO-8859-15)

Versions of packages vim-common depends on:
ii  vim                          1:6.4-001+2 Vi IMproved - enhanced vi editor

vim-common recommends no packages.

-- no debconf information




More information about the pkg-vim-maintainers mailing list