I have created a colorscheme that should work for both vim and gvim. The trouble is, it works only in gvim. When this colorscheme is used with a hand built version of vim (same version and patch number as the ebuild) colours are displayed as expected on both vim and gvim. http://watson-wilson.ca/neilwatson.vim.txt >From vimrc: set syntax=on colorscheme neilwatson grimrc: "font set guifont=Bitstream\ Vera\ Sans\ Mono\ Bold\ 14 "window size set guiheadroom=20 set columns=140 set lines=58 " remove menus, icons and scrollbars "set guioptions-=m set guioptions-=T set guioptions-=R set guioptions-=r Reproducible: Always Steps to Reproduce: 1. 2. 3. ettin htdocs # emerge info Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11.4 i686) ================================================================= System uname: 2.6.11.4 i686 AMD Athlon(tm) MP 2000+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.5 [2.3.5 (#1, May 7 2005, 16:00:18)] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.7.9-r1, 1.9.5, 1.5, 1.6.3, 1.4_p6, 1.8.5-r3 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2, 2.6.8.1-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-mp -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-mp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/opt/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups curl dvdr editor emboss encode esd fam flac foomaticdb fortran gd gdbm gif gnome gpm gtk gtk2 gtkhtml guile imagemagick imlib ipv6 java jpeg kde libg++ libwww mad mbox mikmod motif mp3 mpeg mppe-mppc mysql ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts vorbis xine xinerama xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY ettin htdocs # emerge -s vim$ Searching... [ Results for search key : vim$ ] [ Applications found : 2 ] * app-editors/gvim Latest version available: 6.3.068 Latest version installed: 6.3.068 Size of downloaded files: 4,746 kB Homepage: http://www.vim.org/ Description: GUI version of the Vim text editor License: vim * app-editors/vim Latest version available: 6.3.068 Latest version installed: 6.3.068 Size of downloaded files: 4,746 kB Homepage: http://www.vim.org/ Description: Vim, an improved vi-style text editor License: vim
a few screenshots of the behavior experienced and the expected behavior would help.
Using vim on a xterm: http://watson-wilson.ca/images/vim-xterm.png Using gvim: http://watson-wilson.ca/images/gvim.png
Solved. The problem was the XTERM variable. For the colours to be displayed properly, XTERM must be "xterm-256color". Not really a bug at all. Sorry to have troubled you.