Specific Vim Typing Color - vim

Im using VIM in the OSX terminal. I load the "DarkBlue" colorscheme but with a few configurations. My problem is getting the "writing color" white, but keeping the purple color of the functions.
Here is my color configurations in my .vimrc file:
" ================ Colors ========================
colo DarkBlue
syntax on
hi Comment ctermfg=White
hi Directory ctermfg=White
hi Identifier ctermfg=White
hi PreProc ctermfg=White
hi Title ctermfg=White
hi LineNr ctermfg=White
If I add this to my .vimrc file, the writing color turns white, but purple gets white as well.
"hi Constant ctermfg=White"
Can someone help me with this?

I tried this with a javascript file (i.e. extension .js):
hi Function ctermfg=Magenta
It colors the function keyword and delimiters.

Related

Highlight CursorLine in Vim

Who can help me with this problem?
I have this set in my .vimrc:
highlight CursorLine cterm=NONE ctermbg=white
But the cursor line is underlined instead of getting the white background.
If I write as command the setup:
:highlight CursorLine cterm=NONE ctermbg=white
Vim applies the background color and removes the underline as expected.
Why if the command works, the setup in .vimrc not? the other highlights are working.

Get rid of the underline in Vim's fold name

This is my setting for Vim's folding:
hi Folded term=bold ctermfg=White
How do I get rid of the underline?
For attributes that you don't specify, the :hi command will keep the previous one. So if your colorscheme includes cterm=underline, you need to configure this:
hi Folded term=bold cterm=NONE ctermfg=White

Linux VIM : Omnicppcomplete + supertab use bash color theme

I use vim with omnicppcomplete and supertab for programming. The dropdown window, which shows possible completions is like pink. How can i change the color for example to my personal bash color theme?
Open your colorscheme.
Find the lines that start with hi Pmenu*.
Edit them to your liking.
If there's no such line in your colorscheme, add the lines below and change the colors to what you want:
hi Pmenu cterm=none ctermfg=White ctermbg=Black
hi PmenuSel cterm=none ctermfg=Black ctermbg=DarkGreen
hi PmenuSbar cterm=none ctermfg=none ctermbg=Green
hi PmenuThumb cterm=none ctermfg=DarkGreen ctermbg=DarkGreen
See :help :highlight for more.

jshint vimrc SpellBad customization does not stick

Using
" Customize jshint highlights
hi clear SpellBad
hi SpellBad cterm=underline,bold ctermfg=white ctermbg=black
I was able to customize my jshint SpellBad highlights to the colors I desire when I first open a buffer containing jshint errors. As can be seen here, my background is black and the line with the error is in bold white and underlined. Exactly as I specified using those definitions in .vimrc above.
The problem is, when I switch around between buffers or open a that buffer later again, my custom jshint SpellBad colors no longer apply and I get the "default" colors which I do not want.
Why is this so? And how do I make my custom jshint SpellBad colors stick?
Because your custom highlight settings will be cleared after every :colorscheme commands.
try:
autocmd ColorScheme * hi clear SpellBad
\| hi SpellBad cterm=underline,bold ctermfg=white ctermbg=black

How to change VIM underlines colors

I'm an author of a VIM colorscheme (danger.vim) and I'd like to change some colors that I can barely see.
This is how it looks in Solarized:
This is how it looks in my theme:
As you can see, it's hard to see the underlines at import sys. I'd make them probably lighter blue, and bold.
I use the Syntastic plugin to integrate with Pyflakes and JSLint mainly.
I also use Flux, probably a reason why it's even harder to see.
In your colorscheme file at:
hi Error guifg=NONE guibg=NONE gui=undercurl ctermfg=white ctermbg=red cterm=NONE guisp=#FF6C60 " undercurl color
Change the part after guisp to the color you want.
i.e.
hi Error guifg=NONE guibg=NONE gui=undercurl ctermfg=white ctermbg=red cterm=NONE guisp=#FFFFFF " undercurl color
will make the underlines white
edit:
You can make errors bold by change gui=undercurl to gui=bold,undercurl
Seems like Syntastic shows warnings as spell errors, so all I had to do was to define:
SpellBad word not recognized |hl-SpellBad|
SpellCap word not capitalised |hl-SpellCap|
SpellRare rare word |hl-SpellRare|
SpellLocal wrong spelling for selected region |hl-SpellLocal|
In my colorscheme file.

Resources