Search Terms:
UTG: Unidentified Text Group
IDE, group, keywords, colorscheme, visibility
________________________________________________________________________
I am on Lubuntu 14.04 using VIM - Vi IMproved 7.4 through xterm.
I would like to see certain text in both "morning" and "shiny" color themes. Both of these themes have a bright near white background, and there are certain keywords, in bright yellow, which is extremely hard to see with a white background.
Examples:
Quote:
if elif, else, fi, for, do, done, echo, etc...
|
I wonder if this is the "NonText" group?
I search for "yellow" in both the /etc/vim/vimrc and /usr/share/vim/vim74/colors/am.vim, but simply nothing is set to "yellow".
The following attempts are solutions I found online.
_____________________________________________
Attempt 01:
I tried the first 4 examples work:
Code:
highlight Comment ctermbg=DarkGray
highlight Constant ctermbg=Blue
highlight Normal ctermbg=Black
highlight Special ctermbg=DarkMagenta
highlight NonText ctermbg=Black
Unfortunately, the last command (NonText) has no effect:
I try other foreground colors, but nothing works.
_____________________________________________
Attempt 02: '
Previously I had some problems with my cursor background/foreground color being the same as the general background color (as in "morning" and "shiny" colorschemes) and thanks to Astrogeek, I was able to fix it with a termcap conditional clause. I found a codename for NonText on
sourceforge. Thus I tried altering that same clause to fit that of NonText in my colorscheme (am.vim) file:
Code:
if &term =~ "xterm\\|rxvt"
" use an red cursor in insert mode
let &hl-NonText = "\<Esc>]12;red\x7"
silent !echo -ne "\033]12;red\007"
" reset cursor when vim exits
autocmd VimLeave * silent !echo -ne "\033]112\007"
" use \003]12;gray\007 for gnome-terminal
endif
This merely produces a few error codes, and all the same words are still in yellow.
This is not a very high priority, since my workaround is to use GVim (no problems adjusting this by attempt 01 above!!) and not xterm.
I also tried an older post
LQ which provides a working Vim config with a "nontext" color definition, but nothing worked for me either.
Does anyone know how to change the aforesaid word color to foreground = black? Have I guessed correctly in saying that these words are of the group named "NonText"?