Browse files

[vimrc] Add keybind to clear search

  • Loading branch information...
1 parent 6267116 commit 618ed2848dd6294de42b04ce398143aeefc70f51 @brantb committed Feb 14, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 vimrc
8 vimrc
@@ -23,13 +23,15 @@ if has("win32")
cd $HOME " Default cwd is System32, which is stupid
-set number " Show line numbers
-set shiftwidth=4
-set tabstop=4
+" Search options
set hlsearch " Highlight search results
set smartcase " Search strings that are all-lowercase will do a case-insensitive search
set incsearch " Incremental search
+nnoremap <CR> :noh<CR><CR> " Clear search highlight by hitting enter
+set number " Show line numbers
+set shiftwidth=4
+set tabstop=4
syntax enable
filetype plugin indent on
colorscheme solarized

0 comments on commit 618ed28

Please sign in to comment.