Bug#368698: Started as vi sources .vimrc and warns about unknown
configuration syntax
Kai Weber
kai.weber at glorybox.de
Wed May 24 09:09:09 UTC 2006
Package: vim
Version: 1:7.0-017+4
Severity: normal
Hi,
I have copied the following line from /etc/vim/vimrc into my .vimrc:
" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal g'\"" | endif
endif
If I start vim as vim everything works as expected. If I start vim as
vi I get the following warning:
Error detected while processing /home/kai/.vimrc:
line 11:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue
Is this the expected behaviour? Is starting vim as vi different in
upstream or is this a Debian addition?
If I read about "compatible" in the vim-help I could not find a
information. The help says: If a .vimrc is found it always
starts in compatible mode.
Summarize: If vim is started as vi it also reads .vimrc which could lead
to warnings and errors about unknown syntax (and maybe options, too --
did not try that).
-- 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-1148306385
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages vim depends on:
ii libc6 2.3.6-9 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+4 Vi IMproved - Common files
ii vim-runtime 1:7.0-017+4 Vi IMproved - Runtime files
vim recommends no packages.
-- no debconf information
More information about the pkg-vim-maintainers
mailing list