Add mapping for visual mode selection

This commit is contained in:
2022-01-25 22:42:06 +03:00
parent 71da8fa274
commit 760e92b1d5

View File

@@ -25,6 +25,10 @@ nmap("<A-j>", ":m .+1<CR>==") -- Alt+j - same as above mapping but the other way
vmap("K", ":m '<-2<CR>gv=gv") -- Shift+k - in visual mode move selected lines up vmap("K", ":m '<-2<CR>gv=gv") -- Shift+k - in visual mode move selected lines up
vmap("J", ":m '>+1<CR>gv=gv") -- Shift+j - same as above mapping but the other way vmap("J", ":m '>+1<CR>gv=gv") -- Shift+j - same as above mapping but the other way
-- Leave selection when moving code left and right
vmap("<", "<gv")
vmap(">", ">gv")
-- Terminal -- Terminal
tmap("<ESC>", "<C-\\><C-n>") -- Escape - in terminal mode, quit to normal mode tmap("<ESC>", "<C-\\><C-n>") -- Escape - in terminal mode, quit to normal mode
nmap("Th", ":lua open_terminal()<CR>") -- Shift+t - open terminal in horizontal split nmap("Th", ":lua open_terminal()<CR>") -- Shift+t - open terminal in horizontal split