diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua index 9d238394..d311b37e 100644 --- a/.config/nvim/lua/config/keymaps.lua +++ b/.config/nvim/lua/config/keymaps.lua @@ -48,9 +48,12 @@ map("n", "cie", "LazyExtras", { desc = "Extras" }) map("n", "", "_", { desc = "First character of Line" }) map("n", "", "$", { desc = "Last character of Line" }) --- Copy whole file content to clipboard with C-y +-- Copy whole text to clipboard map("n", "", ":%y+") +-- Select all text +map("n", "", "ggG") + -- Better paste -- remap "p" in visual mode to delete the highlighted text without overwriting your yanked/copied text, and then paste the content from the unnamed register. map("v", "p", '"_dP')