feat(keymaps): enhance pasting and deleting text from buffer

This commit is contained in:
Mohammed Elsir 2024-09-25 14:08:46 +02:00
parent a1c3ec4cd4
commit 598bc598e5

View file

@ -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" })