mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
nvim: keymaps: apply indent and move to end for pasting in visual mode
This commit is contained in:
parent
562e53b3f8
commit
0c43d80579
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ vim.keymap.set('v', 'y', 'myy`y')
|
|||
vim.keymap.set('v', 'Y', 'myY`y')
|
||||
|
||||
-- Indent and move to the end when pasting.
|
||||
vim.keymap.set('n', 'p', 'p`[v`]=`>')
|
||||
vim.keymap.set({ 'n', 'x' }, 'p', 'p`[v`]=`>')
|
||||
|
||||
vim.keymap.set({ 'n', 'v' }, '<leader>y', [["+y]], {desc = "Yank into system register"})
|
||||
vim.keymap.set({ 'n', 'v' }, '<leader>p', [["+p]], {desc = "Paste system register"})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue