Merge pull request #332 from lfilho/better-search-and-jump

Some more improvements to searching and jumping
This commit is contained in:
Yan Pritzker 2013-05-13 08:13:26 -07:00
commit 251b84ddb1

View File

@ -5,4 +5,17 @@ set hlsearch " Hilight searches by default
set viminfo='100,f1 " Save up to 100 marks, enable capital marks
set ignorecase " Ignore case when searching...
set smartcase " ...unless we type a capital
set wrapscan " Search wrap the file
" Using Perl/Python regex style by default when searching
nnoremap / /\v
vnoremap / /\v
" Keep search matches in the middle of the window.
nnoremap n nzzzv
nnoremap N Nzzzv
" Same when jumping around
nnoremap g; g;zz
nnoremap g, g,zz
nnoremap <c-o> <c-o>zz