From: Mike D. Lowis Date: Tue, 14 Apr 2015 19:01:47 +0000 (-0400) Subject: Tweak searching and search highlighting and use the X clipboard on linux X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=4e8592d72e3336227a26dd8dfa9eb221a510188b;p=archive%2Fvim_config.git Tweak searching and search highlighting and use the X clipboard on linux --- diff --git a/vimrc b/vimrc index 90dfd8f..d9ade8f 100644 --- a/vimrc +++ b/vimrc @@ -30,7 +30,7 @@ set mat=2 " How long to blink matching braces for set visualbell t_vb= " Turn off visual and error bells set noerrorbells " Turn off auditory bells set hid " Change buffer without saving -set clipboard=unnamed " Yank and Put commands use the system clipboard +set clipboard=unnamedplus " Yank and Put commands use the system clipboard set laststatus=2 " Turn on the status line always set undodir=$VIMHOME/undo " Set directory for storing undo files set undofile " Turn on persistent undo @@ -202,11 +202,19 @@ vnoremap < >gv " ---- Clear Search Highlighting ---- -map h :nohl +map h :set hlsearch! + +" ---- Re-Enable search highlighting for new searches ---- +noremap * :set hlsearch:nohlsearch* +noremap / :set hlsearch:nohlsearch/ +noremap ? :set hlsearch:nohlsearch? " ---- Toggle Spell Checking ---- map s :set spell! +" ---- Clear Search Highlighting ---- +map n :set number! + " ---- Omni Complete ---- inoremap