mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] add mappings for quick horizontal scrolling
This commit is contained in:
parent
a7d57f2fd8
commit
8d525337fc
1 changed files with 16 additions and 0 deletions
|
@ -119,6 +119,22 @@ set commentstring=//%s
|
||||||
xnoremap <leader>dg :diffget<CR>
|
xnoremap <leader>dg :diffget<CR>
|
||||||
xnoremap <leader>dp :diffput<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
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue