Bug#777109: vim: /etc/vim/vimrc.local not mentioned in man page

Vincas Dargis vindrg at gmail.com
Thu Feb 5 08:30:08 UTC 2015


Package: vim
Version: 2:7.3.547-7
Severity: minor

Dear Maintainer,

I researched how could I apply vim settings globally (enabling usefull options
for all users during automated install). Search gave me information that I
could create /etc/vim/vimrc.local file, and that's true, vim tries to open
vimrc.local file:

$ strace vim 2>&1 | grep vimrc
stat("/usr/share/vim/vimrc", {st_mode=S_IFREG|0644, st_size=2191, ...}) = 0
open("/usr/share/vim/vimrc", O_RDONLY)  = 4
stat("/usr/share/vim/vimrc", {st_mode=S_IFREG|0644, st_size=2191, ...}) = 0
stat("/etc/vim/vimrc.local", 0x7fff5e84b2c0) = -1 ENOENT (No such file or
directory)
open("/etc/vim/vimrc.local", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or
directory)
stat("/home/vincas/.vimrc", {st_mode=S_IFREG|0644, st_size=131, ...}) = 0
open("/home/vincas/.vimrc", O_RDONLY)   = 4
stat("/home/vincas/.vimrc", {st_mode=S_IFREG|0644, st_size=131, ...}) = 0

While manual page menions files like:
/usr/share/vim/vimrc
~/.vimrc
but there are no info about possibility to use /etc/vim/* files.




-- Package-specific info:

--- real paths of main Vim binaries ---
/usr/bin/vi is /usr/bin/vim.basic
/usr/bin/vim is /usr/bin/vim.basic

-- System Information:
Debian Release: 7.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vim depends on:
ii  libacl1      2.2.51-8
ii  libc6        2.13-38+deb7u7
ii  libgpm2      1.20.4-6
ii  libselinux1  2.1.9-5
ii  libtinfo5    5.9-10
ii  vim-common   2:7.3.547-7
ii  vim-runtime  2:7.3.547-7

vim recommends no packages.

Versions of packages vim suggests:
pn  ctags        <none>
pn  vim-doc      <none>
ii  vim-scripts  20121007

-- no debconf information



More information about the pkg-vim-maintainers mailing list