From bb6e1fc9c7849c643ab332ada7edd03e7fe1f076 Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 30 Oct 2022 03:18:21 +0100 Subject: [PATCH] vimrc: add vmaps for better visual UX --- .vim/vimrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.vim/vimrc b/.vim/vimrc index 4eb6ba2..954fc2d 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -611,6 +611,14 @@ nnoremap gt map - - map + + +" vmap to stay in Visual Mode after shifting > and < +vmap < >gv + +" moving visual blocks +vnoremap J :m '>+1gv=gv +vnoremap K :m '<-2gv=gv + "------------------------------------ " vim-go.vim