On 14/10/12 19:13, Kevin O'Gorman wrote:
I'm running the latest Ubuntu stuff, but this problem has been around
for a while.
I like to use vim (not gvim) in my linux x-terminal. All is well
there. However, when I use vimdiff, none of the default colorschemes
is useable because much of the text is unreadable because of low
contrast. They are all quite dark, and dark anything on dark anything
is a challenge.
I'd be content to turn it off entirely if I knew how. ":syntax off"
is all that comes to mind, and it does not seem to do anything at all.
Any ideas?
One possibility is to use a GUI-enabled Vim in console mode with the
colours of gvim. For this purpose, I recommend installing the CSApprox
plugin: it will use in the terminal the colors closest to what your
(default or not) colorscheme sets for gui= guibg= guifg= , provided (a)
that your Vim binary is GUI-enabled (on Linux, it can be compiled as
"vim", and it will run in Console mode if invoked as vi, vim, vimdiff,
view, etc., and in GUI mode if invoked as gvim, gview, etc.), and (b)
that your terminal has at least 88 different possible colors. If your
usual terminal could do 256 colours except that it sets $TERM as
"xterm", you can add in your vimrc a statement such as
if &term =~? 'xterm\|mlterm'
set t_Co=256
endif
(The Linux non-X test console on /dev/tty1 to /dev/tty6, i.e.
Crtl-Alt-F1 to Ctrl-Alt-F6, can usually only do 8 background colors and
16 foreground colors.)
This ":if" statement must be put high enough in your vimrc, so that
*none* of the following comes before it:
:filetype <arguments>
:menu <arguments>
:syntax {on|enable|reset}
:source $VIMRUNTIME/vimrc_example.vim
:runtime vimrc_example.vim
Then to enable CSApprox you just unpack its zipfile into either ~/.vim
(for user-private install) or $VIM/vimfiles (for system-wide
installation) and run :helptags (q.v.) in that directory's doc/
subdirectory.
A new CSApprox version was published about a month ago, it is to be
found at http://www.vim.org/scripts/script.php?script_id=2390
Best regards,
Tony.
--
FATHER: We are here today to witness the union of two young people in the
joyful bond of the holy wedlock. Unfortunately, one of them,
my son
Herbert, has just fallen to his death.
[Murmurs from CROWD; the BRIDE smiles with relief, coughs.]
"Monty Python and the Holy Grail" PYTHON (MONTY)
PICTURES LTD
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php