From 4364625bf57ebc0dd6b371bd4f4f5ea9d5bb2d36 Mon Sep 17 00:00:00 2001 From: druckdev Date: Thu, 22 Jul 2021 15:59:16 +0200 Subject: [PATCH] vim:keys: Add binds to move lines and reindent --- .config/vim/vimrc.d/40-keybindings.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/vim/vimrc.d/40-keybindings.vim b/.config/vim/vimrc.d/40-keybindings.vim index 463044f..7a58f41 100644 --- a/.config/vim/vimrc.d/40-keybindings.vim +++ b/.config/vim/vimrc.d/40-keybindings.vim @@ -113,3 +113,9 @@ endif " Y should behave like D & C does nnoremap Y y$ + +" Move lines up and down while correcting the indentation +nnoremap ddkP== +nnoremap ddp== +vmap dkPgp=gv +vmap dpgp=gv