From 4e8592d72e3336227a26dd8dfa9eb221a510188b Mon Sep 17 00:00:00 2001 From: "Mike D. Lowis" Date: Tue, 14 Apr 2015 15:01:47 -0400 Subject: [PATCH] Tweak searching and search highlighting and use the X clipboard on linux --- vimrc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 -- 2.52.0