From 760e92b1d575c97c7451c6ecebea39b6c993c324 Mon Sep 17 00:00:00 2001 From: Daniil Tsivinsky Date: Tue, 25 Jan 2022 22:42:06 +0300 Subject: [PATCH] Add mapping for visual mode selection --- config/nvim/lua/user/remaps.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/nvim/lua/user/remaps.lua b/config/nvim/lua/user/remaps.lua index 3b6963d..4b1031e 100644 --- a/config/nvim/lua/user/remaps.lua +++ b/config/nvim/lua/user/remaps.lua @@ -25,6 +25,10 @@ nmap("", ":m .+1==") -- Alt+j - same as above mapping but the other way vmap("K", ":m '<-2gv=gv") -- Shift+k - in visual mode move selected lines up vmap("J", ":m '>+1gv=gv") -- Shift+j - same as above mapping but the other way +-- Leave selection when moving code left and right +vmap("<", "", ">gv") + -- Terminal tmap("", "") -- Escape - in terminal mode, quit to normal mode nmap("Th", ":lua open_terminal()") -- Shift+t - open terminal in horizontal split