How To Change The Search Highlight Color In VIM

Published Date Author: , Posted October 22nd, 2010 at 10:49:34am

Add the following line to your .vimrc file:

[code]hi Search ctermfg=white ctermbg=lightgreen guifg=white guibg=black[/code]

Color List
Color Schemes
Color Scroller

Use :noh to clear the last search highlight.

Place the following in your ~/.vimrc to map the F3 key to a highlight toggle:

[code]nnoremap <F3> :set hlsearch!<CR>[/code]

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.