Center search results in vim

pull/2/head
Bodaniel Jeanes 2011-11-23 16:54:11 -06:00
parent d86fff17bc
commit a94999be15
1 changed files with 12 additions and 1 deletions

View File

@ -43,7 +43,18 @@ syntax on
set incsearch set incsearch
set ignorecase set ignorecase
set smartcase set smartcase
noremap <silent> <Space> <Esc>:noh<CR><Space>
" Remove highlighting when entering insert (not working... )
autocmd InsertEnter * nohlsearch
" center result
nnoremap n nzz
nnoremap N Nzz
nnoremap * *zz
nnoremap # #zz
nnoremap g* g*zz
nnoremap g# g#zz
" Tab completion " Tab completion
set wildmode=list:longest,list:full set wildmode=list:longest,list:full