diff --git a/vim/vimrc b/vim/vimrc index 3cbb545..b38818b 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -72,6 +72,7 @@ set scrolloff=5 " Add visible lines beyond cursor at top or bottom of wi " Turn off search highlighting with Enter nnoremap :nohlsearch +" Center page on search noremap n nzz noremap N Nzz noremap * *zz @@ -79,6 +80,12 @@ noremap # #zz noremap g* g*zz noremap g# g#zz +" Better scrolling keys +noremap +noremap +inoremap +inoremap + " Allow saving files with sudo after starting vim cmap w!! w !sudo tee > /dev/null % @@ -140,7 +147,9 @@ Plug 'dense-analysis/ale' call plug#end() -map :NERDTreeToggle +" press / instead of _ +nnoremap :NERDTreeToggle +nnoremap :ALEToggle let g:ycm_autoclose_preview_window_after_insertion = 1