From 3f49a6203c72830799aad4f87034ce4625d8ad6f Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sun, 6 Jan 2013 00:59:51 -0600 Subject: [PATCH] .vimrc: Color (highlight) tweaks * Set Visual (visual-block) color to be white-on-green to match ack and grep color-scheme. Nice and low-contrast-y. * Tweak guifg/guibg colors for MacVim. --- .vimrc | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.vimrc b/.vimrc index 032dc2b..39961c4 100644 --- a/.vimrc +++ b/.vimrc @@ -36,9 +36,6 @@ if &t_Co > 2 || has("gui_running") set background=dark " dark background syntax enable " syntax highligting - set hlsearch " highlight all search matches - " Press to turn off highlighting and clear any message already displayed. - nnoremap :nohlsearch:echo " Define to-do color(s) if !exists("autocmd_colorscheme_loaded") @@ -59,19 +56,18 @@ if &t_Co > 2 || has("gui_running") endif " --------------------------------------------------------------------------- -" Highlight +" Highlight (Colors) " --------------------------------------------------------------------------- -highlight Comment ctermfg=DarkGrey guifg=#444444 -highlight StatusLine ctermfg=DarkGrey ctermbg=Grey cterm=reverse guifg=#444444 guibg=#aaaaaa gui=reverse -highlight StatusLineNC ctermfg=DarkGrey ctermbg=DarkGrey cterm=reverse guifg=#444444 guibg=#666666 gui=reverse - -" ---------------------------------------------------------------------------- -" Highlight Trailing Whitespace -" ---------------------------------------------------------------------------- - -set list listchars=trail:.,tab:>. -highlight SpecialKey ctermfg=DarkGray ctermbg=Black +" comments +highlight Comment ctermfg=DarkGrey guifg=#425257 +" visual block +highlight Visual term=reverse cterm=reverse ctermfg=DarkGreen ctermbg=White guifg=#4d830a guibg=#ffffff +" statusline (active vs inactive) +highlight StatusLine term=reverse cterm=reverse ctermfg=DarkGrey ctermbg=Grey guifg=#444444 guibg=#aaaaaa +highlight StatusLineNC term=reverse cterm=reverse ctermfg=DarkGrey ctermbg=DarkGrey guifg=#444444 guibg=#666666 +" unprintable chars (listchars) +highlight SpecialKey ctermfg=DarkGray ctermbg=Black guifg=#374549 guibg=#010c0e " ---------------------------------------------------------------------------- " Backups @@ -114,6 +110,8 @@ set laststatus=2 " always show the status line set ignorecase " ignore case when searching set smartcase " case-sensitive if search contains an uppercase character set visualbell " shut the heck up +set hlsearch " highlight all search matches +set list listchars=trail:.,tab:>. " show trailing whitespace and tab chars " ---------------------------------------------------------------------------- " Status Line @@ -171,6 +169,9 @@ let mapleader = "," nnoremap :set invpaste paste? set pastetoggle= +" press to turn off highlighting and clear any message already displayed. +nnoremap :nohlsearch:echo + " disable default vim regex handling for searching nnoremap / /\v vnoremap / /\v -- 2.45.2