VIM: Can't see Certain keywords
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:
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 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" 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"? |
Quote:
|
Quote:
Code:
NonText '~' and '@' at the end of the window, characters from For completeness, the above NonText examples are almost certainly working for the NonText characters described above, but those are not what you are looking at for evidence of change. For if elif, else, fi, for, do, done, echo, etc., you want the Conditional sub-group of the Statement group, as indicated by norobro. So, something like this would affect those keywords, choose your colors as required: Code:
highlight Conditional ctermbg=Black The docs: The previously linked Vimdocs on Sourceforge are always handy, but you probably have the same docs for your Vim package available on your system. Look under /usr/share/vim/vim74/docs/ or wherever your distro places shared docs, and learn your way around them. The basics of syntax hilighting: The complete reference on Vim syntax hilighting from those docs, simply start at the top and read down - it is complete! In particular, follow the link to the Syntax page for a very good overview of how the syntax hilighting files are found and loaded. It all works as advertised, when we identify and ask the right question! Hope this helps! |
Solved
Quote:
Astrogeek & norobro, I found just what I needed on your and norobro's Syntax Page, more specifically: Code:
Statement any statement Code:
Preamble: Hope this helps anyone who has this problem in the future. |
All times are GMT -5. The time now is 07:25 AM. |