mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(keymaps): enhance pasting and deleting text from buffer
This commit is contained in:
parent
a1c3ec4cd4
commit
598bc598e5
1 changed files with 4 additions and 0 deletions
|
|
@ -75,6 +75,10 @@ map("n", "<leader>K", "<cmd>norm! K<cr>", { desc = "Keywordprg" })
|
|||
map("v", "<", "<gv")
|
||||
map("v", ">", ">gv")
|
||||
|
||||
-- Keep last yanked when pasting or deleting
|
||||
map("v", "p", '"_dP')
|
||||
map("n", "x", '"_x')
|
||||
|
||||
-- commenting
|
||||
map("n", "gco", "o<esc>Vcx<esc><cmd>normal gcc<cr>fxa<bs>", { desc = "Add Comment Below" })
|
||||
map("n", "gcO", "O<esc>Vcx<esc><cmd>normal gcc<cr>fxa<bs>", { desc = "Add Comment Above" })
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue