From 96df378bb0b2fdbe111cfc0d8f0eab7a99a06b3b Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Sat, 15 May 2021 18:45:59 +0300 Subject: [PATCH] [nvim] add some more mappings --- nvim/plugin/editing.vim | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/nvim/plugin/editing.vim b/nvim/plugin/editing.vim index 46cbe9b..8b2ec27 100644 --- a/nvim/plugin/editing.vim +++ b/nvim/plugin/editing.vim @@ -100,7 +100,8 @@ set commentstring=//%s nnoremap nnoremap - nnoremap Q + " Source of this trick: + nnoremap Q gq " normal mode nnoremap dg :.diffget @@ -110,10 +111,18 @@ set commentstring=//%s xnoremap dp :diffput " Horizontal scroll + " Alt+hjkl and Alt+Arrow - scroll one column/row + " Alt+Shift+hjkl - scroll half a page " normal mode nnoremap zh nnoremap zH nnoremap zh + nnoremap + nnoremap + nnoremap + nnoremap + nnoremap + nnoremap nnoremap zl nnoremap zL nnoremap zl @@ -121,6 +130,12 @@ set commentstring=//%s xnoremap zh xnoremap zH xnoremap zh + xnoremap + xnoremap + xnoremap + xnoremap + xnoremap + xnoremap xnoremap zl xnoremap zL xnoremap zl