[nvim] add mappings for quick horizontal scrolling

This commit is contained in:
Dmytro Meleshko 2021-02-27 14:38:31 +02:00
parent a7d57f2fd8
commit 8d525337fc
1 changed files with 16 additions and 0 deletions

View File

@ -119,6 +119,22 @@ set commentstring=//%s
xnoremap <leader>dg :diffget<CR>
xnoremap <leader>dp :diffput<CR>
" Horizontal scroll
" normal mode
nnoremap <M-h> zh
nnoremap <M-H> zH
nnoremap <M-Left> zh
nnoremap <M-l> zl
nnoremap <M-L> zL
nnoremap <M-Right> zl
" visual mode
xnoremap <M-h> zh
xnoremap <M-H> zH
xnoremap <M-Left> zh
xnoremap <M-l> zl
xnoremap <M-L> zL
xnoremap <M-Right> zl
" }}}