add visual mode keymaps to yank/put into register 'a'
allow storing text into a named register so that it won't be lost when replacing selected text
This commit is contained in:
parent
a78b92ace5
commit
ad672effd4
1 changed files with 4 additions and 3 deletions
|
|
@ -48,9 +48,10 @@ vim.keymap.set("x", "d", "\"_d")
|
||||||
|
|
||||||
-- copy/paste to/from system clipboard
|
-- copy/paste to/from system clipboard
|
||||||
vim.keymap.set({ "n", "v" }, "<leader>y", "\"+y")
|
vim.keymap.set({ "n", "v" }, "<leader>y", "\"+y")
|
||||||
-- pasting a selected/higlighted block of text should not replaced the content of the clipboard with it
|
vim.keymap.set("n", "<leader>p", "\"+p")
|
||||||
vim.keymap.set({ "n", "v" }, "<leader>p", "_\"+p")
|
-- yank/put to/from register 'a'
|
||||||
vim.keymap.set({ "n", "v" }, "p", "_p")
|
vim.keymap.set("x", "ay", '"ay', { noremap = true })
|
||||||
|
vim.keymap.set("x", "ap", '"ap', { noremap = true })
|
||||||
|
|
||||||
-- increment/decrement a count, helpful for changing indeces
|
-- increment/decrement a count, helpful for changing indeces
|
||||||
vim.keymap.set("n", "+", "<C-a>")
|
vim.keymap.set("n", "+", "<C-a>")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue