Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: colours for syntax highlighting

by Anonymous Monk
on Nov 21, 2019 at 07:39 UTC ( [id://11108969]=note: print w/replies, xml ) Need Help??


in reply to colours for syntax highlighting

I use "darkblue" where I don't care for any particular scheme other than one having decent contrast between text & dark background. (In my own $ENV I have my own color schemes which is not as complete (due to incomplete syntax matching) as the ones included with vim, and I could not care less.) In any case I have found colors for word completion list & comment color (dark blue on black background) to be horrible in the default/no particular scheme (vim 7, 8), and not good enough under "darkblue".

When I use "darkblue", I have lightly modified some of the colors ...

... " Removed custom syntax matching & associated highlight colors. " black/grey: 0, 0c0c0c red: 1, fc3c4c " green: 2, 0cdc0c/33ff33 brown/yellow: 3, fcfc00 " blue: 4, 4c4cdc/000020 magenta: 5, ac4cac/bc40bc " cyan: 6, 3cbcfc grey/white: 7, dcdcdc/fcfcfc " hi Comment cterm=none ctermfg=5 hi Identifier cterm=bold "ctermfg=6* hi logLevelNormal cterm=none ctermfg=2 hi logLevelNormalMess cterm=none ctermfg=2 " hi logLevelWarn cterm=bold ctermfg=3* hi logLevelWarnMess cterm=bold ctermfg=3* " hi logLevelErr cterm=bold ctermfg=1* hi logLevelErrMess cterm=bold ctermfg=1* " Normal completion menu item; hi Pmenu term=reverse cterm=bold ctermfg=0 cter +mbg=6 " selected item; hi PmenuSel term=reverse,bold cterm=bold ctermfg=7 cter +mbg=4 " scrollbar; hi PmenuSbar term=reverse cterm=bold ctermfg=0 cter +mbg=2 " 'thumb' of the scrollbar. hi PmenuThumb term=reverse cterm=bold,reverse ctermfg=0 cter +mbg=2 " " Have not seen these in GUI in a long time. "hi Pmenu gui=bold guifg=#dcdcdc guibg=#000000 "hi PmenuSel gui=bold guifg=#ffff00 guibg=#000000 "hi PmenuSbar gui=bold guifg=#ffff00 guibg=#000000 "hi PmenuThumb gui=reverse guifg=#ffff00 guibg=#000000 ...

Replies are listed 'Best First'.
Re^2: colours for syntax highlighting
by Anonymous Monk on Nov 21, 2019 at 07:41 UTC

    Forgot that colors for diff are horrible too, so need to be modified ...

    " Change colors for vimdiff to make text readable. if &diff syn off hi clear " Magenta. " Text with no changes. highlight Normal term=none cterm=italic ctermfg=5 ctermbg=0 " Green. " Text added; appears beside text-removed. highlight DiffAdd term=bold,underline cterm=bold ctermfg=2 cter +mbg=0 gui=none guifg=bg guibg=Red " " Red. " Text removed, namely "-----" indicator. highlight DiffDelete term=reverse cterm=bold ctermfg=1 ctermbg=0 + gui=none guifg=bg guibg=Red " White " Text of the line with change. highlight DiffChange term=underline cterm=none ctermfg=7 ctermbg=0 + gui=none guifg=bg guibg=Red " " Yellow. " Changed text. highlight DiffText term=bold cterm=bold ctermfg=3 ctermbg=0 + gui=none guifg=bg guibg=Red endif

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11108969]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-04-18 06:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found