From c8dfd1ad2886d7279daf5c83a5923b1e866595fa Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Fri, 7 Jul 2023 13:27:30 +0200 Subject: [PATCH] better splitting and joining vim --- home/.config/nvim/common.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/home/.config/nvim/common.vim b/home/.config/nvim/common.vim index 0ae7cd9..6c5dac9 100644 --- a/home/.config/nvim/common.vim +++ b/home/.config/nvim/common.vim @@ -103,6 +103,13 @@ map % :split " join with j nnoremap j :join +" join up with J +nnoremap J :move .-2 :join + +" split lines with s +nnoremap s i +" split lines up with S +nnoremap S i V:m -2 " move screen a line up/down with alt U/D nmap kzz