From 65e323c1e6bf69f8b47c564bd368f225badf9af8 Mon Sep 17 00:00:00 2001 From: surdeus Date: Thu, 18 Jan 2024 10:20:18 +0300 Subject: [PATCH] feat: nvim: added the shortcut to select the pasted text. --- nvim/lua/maps.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nvim/lua/maps.lua b/nvim/lua/maps.lua index d67918b..daeb663 100644 --- a/nvim/lua/maps.lua +++ b/nvim/lua/maps.lua @@ -43,6 +43,11 @@ local opts = {nowait=true, silent = true} map('n', '\\lex', ":Lexplore\n", opts) map('n', '\\ex', ":Explore\n", opts) +-- Literal tabs with Shift-Tab + map('i', '', '\t', opts) + map('n', '', 'hx', opts) + map('n', 'gp', '`[v`]', opts) + -- Search map('n', '\\noh', ':noh\n', opts) @@ -52,10 +57,6 @@ local opts = {nowait=true, silent = true} -- Fold map('n', '<2-LeftMouse>', 'za', opts) -- Insert - -- Literal tabs with Shift-Tab - map('i', '', '\t', opts) - map('n', '', 'hx', opts) - -- Empty map('n', '', '', opts)