Bug#671677: vim-tiny: 'filereadable()' in /etc/vim/vimrc does not work

Rogier rogier777 at gmail.com
Sat May 5 19:54:25 UTC 2012


Package: vim-tiny
Version: 2:7.3.429-2
File: /usr/bin/vim.tiny
Severity: normal

Dear Maintainer,

The function filereadable(), which is used in /etc/vim/vimrc, does not
seem to work. After I changed /etc/vim/vimrc.local, the modified settings
did not take effect, which seems to be caused by the call to filereadable()
in /etc/vim/vimrc failing.

I also ran the following tests:

    prompt $ echo blabla > /tmp/vimrc
    prompt $ vim -u /tmp/vimrc -U NONE -N
    Error detected while processing /tmp/vimrc:
    line    1:
    E492: Not an editor command: blabla
    Press ENTER or type command to continue
    ('ENTER' starts the editor session)

However, after a test using 'filereadable()', the invalid command is skipped:

    prompt $ echo -e 'if filereadable("/tmp/vimrc")\nblabla\nendif' > /tmp/vimrc
    prompt $ vim -u /tmp/vimrc -U NONE -N
    (editor session starts without complaint)

If this is intended behavior (e.g. filereadable() was disabled to
keep vim-tiny small), please add a comment to /etc/vim/vimrc, to explain
this behavior.

Kind regards,

Rogier.


-- Package-specific info:

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

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 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-tiny depends on:
ii  libc6        2.13-27
ii  libselinux1  2.1.9-2
ii  libtinfo5    5.9-4
ii  vim-common   2:7.3.429-2

vim-tiny recommends no packages.

Versions of packages vim-tiny suggests:
ii  indent  2.2.11-1

-- no debconf information





More information about the pkg-vim-maintainers mailing list