Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[vimrc] Add keybind to clear search

  • Loading branch information...
commit 618ed2848dd6294de42b04ce398143aeefc70f51 1 parent 6267116
@brantb authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 vimrc
View
8 vimrc
@@ -23,13 +23,15 @@ if has("win32")
cd $HOME " Default cwd is System32, which is stupid
endif
-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
Please sign in to comment.
Something went wrong with that request. Please try again.