mirror of https://github.com/bjeanes/dotfiles.git
Center search results in vim
parent
d86fff17bc
commit
a94999be15
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue