feat: nvim: added the shortcut to select the pasted text.

This commit is contained in:
Andrey Parhomenko 2024-01-18 10:20:18 +03:00
parent 895179490e
commit 65e323c1e6

View file

@ -43,6 +43,11 @@ local opts = {nowait=true, silent = true}
map('n', '\\lex', ":Lexplore\n", opts) map('n', '\\lex', ":Lexplore\n", opts)
map('n', '\\ex', ":Explore\n", opts) map('n', '\\ex', ":Explore\n", opts)
-- Literal tabs with Shift-Tab
map('i', '<S-Tab>', '\t', opts)
map('n', '<Backspace>', 'hx', opts)
map('n', 'gp', '`[v`]', opts)
-- Search -- Search
map('n', '\\noh', ':noh\n', opts) map('n', '\\noh', ':noh\n', opts)
@ -52,10 +57,6 @@ local opts = {nowait=true, silent = true}
-- Fold -- Fold
map('n', '<2-LeftMouse>', 'za', opts) map('n', '<2-LeftMouse>', 'za', opts)
-- Insert -- Insert
-- Literal tabs with Shift-Tab
map('i', '<S-Tab>', '\t', opts)
map('n', '<Backspace>', 'hx', opts)
-- Empty -- Empty
map('n', '<C-l>', '', opts) map('n', '<C-l>', '', opts)