Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85425 - vim with gentoo-syntax gives errors when using "compatible" mode
Summary: vim with gentoo-syntax gives errors when using "compatible" mode
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-03-15 15:16 UTC by Rob Henderson
Modified: 2005-03-21 11:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Henderson 2005-03-15 15:16:31 UTC
If you have "set compatible" in your .vimrc you get lots of errors from the gentoo-syntax plugins.  For example:

robwilco root # cat .vimrc
set compatible
robwilco root # vim

--- Auto-Commands ---
filetypedetect  BufNewFile
*.e{build,class}
set filetype=ebuild
gentoo  BufNewFile
*.e{build,class}
let is_bash=1|setfiletype sh
set ts=4 sw=4 noexpandtab
Error detected while processing /usr/share/vim/vimfiles/plugin/newebuild.vim:
line  115:
E10: \ should be followed by /, ? or &
--- Auto-Commands ---
Error detected while processing /usr/share/vim/vimfiles/plugin/newinitconfd.vim:
line   43:
E10: \ should be followed by /, ? or &
--- Auto-Commands ---
line   46:
E10: \ should be followed by /, ? or &
--- Auto-Commands ---
filetypedetect  BufNewFile
metadata.xml
set filetype=gentoo-metadata
Error detected while processing /usr/share/vim/vimfiles/plugin/newmetadata.vim:
line   67:
E10: \ should be followed by /, ? or &
Hit ENTER or type command to continue



Removing the "set compatible" from .vimrc makes the errors go away.

Here are the versions I'm using:

vim-core-6.3-r4
vim-6.3-r4
gentoo-syntax-20050211-r1

Reproducible: Always
Steps to Reproduce:
1. emerge vim (which now installs gentoo-syntax via PDEPEND)
2. put "set compatible" in your .vimrc
3. run "vim"

Actual Results:  
got the errors noted.

Expected Results:  
no errors.... or, if gentoo-syntax will not work with 'compatible' mode, then it
shouldn't be in PDEPEND, IMHO.

Portage 2.0.51.19 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20040808-r1,
2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 11 2005, 08:34:51)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/X11/WindowMaker /etc/X11/rstart /etc/X11/serverconfig
/etc/X11/starthere /etc/X11/sysconfig /etc/X11/twm /etc/a2ps /etc/apm /etc/gconf
/etc/gnome-vfs-2.0 /etc/gtk-2.0 /etc/hotplug /etc/hotplug.d /etc/init.d
/etc/lam-mpi /etc/nmh /etc/snort /etc/sound /etc/ssl/misc /etc/terminfo
/usr/X11R6/lib/X11/xkb /usr/kde/3.3/share/config /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://spout.ussg.indiana.edu/pub/array2/linux/gentoo/
ftp://mirrors.tds.net/gentoo http://www.gtlib.cc.gatech.edu/pub/gentoo
http://csociety-ftp.ecn.purdue.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://gentoo-install.cs.indiana.edu/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups curl
emboss encode esd f77 fam flac font-server foomaticdb fortran gdbm gif gimpprint
gnome gphoto2 gpm gstreamer gtk gtk2 imagemagick imap imlib ipv6 java jpeg junit
kde ldap libg++ libwww mad mbox mikmod motif mozilla mp3 mpeg mysql ncurses nls
nntp oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby
samba sdl slang snmp spell ssl svga tcltk tcpd tetex tiff truetype
truetype-fonts type1-fonts wmf xml xml2 xmms xprint xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Ciaran McCreesh 2005-03-15 15:23:21 UTC
Yick. Do you really want vi compatible mode set?

I 'spose we could just disable gentoo-syntax when compatible until the safe script environment thing gets implemented...
Comment 2 Rob Henderson 2005-03-16 06:48:10 UTC
It isn't really a matter of what _I_ want...  ;-)  We have a number of users who just want 'vi' to behave like the vi they have been using for the past 20 years so they use 'compatible' mode.  They don't have any need for anything in gentoo-syntax but it is now being installed by default so they are getting it whether they want it or not.  I have been unmerging gentoo-syntax but any future update will pick it up again so it's a bit of a hassle.  I really don't think the use of 'compatible' mode is that rare so think it should be made to work with gentoo-syntax since that is getting installed by default.

I'm a little curious why gentoo-syntax is now in the PDEPEND for vim-core.  If someone wants it, why not let them emerge it?  Unless I'm missing something, the basic function of vim doesn't depend on is so it just seems odd to include it as a dependency.

Thanks for your help!

  --Rob
Comment 3 Ciaran McCreesh 2005-03-16 09:39:46 UTC
Ok, if we actually have someone using compatible mode then I'll add in a check.

It's in PDEPEND to make various things actually work out of the box. We had a fair bit of discussion about this before adding it.
Comment 4 Rob Henderson 2005-03-16 10:01:44 UTC
That would be ideal.  Thanks much.
Comment 5 Ciaran McCreesh 2005-03-17 16:11:01 UTC
SVN r158:159
Comment 6 Ciaran McCreesh 2005-03-17 16:52:29 UTC
In 20050318, thanks.
Comment 7 Rob Henderson 2005-03-21 11:36:36 UTC
FYI, 20050318 is working for me.  Thanks!