⚙️ config(nvim): add new keymap for selecting all text within a file
This commit is contained in:
parent
fc2eaa10bb
commit
62c4d8198e
1 changed files with 4 additions and 1 deletions
|
@ -48,9 +48,12 @@ map("n", "<leader>cie", "<cmd>LazyExtras<cr>", { desc = "Extras" })
|
|||
map("n", "<a-h>", "_", { desc = "First character of Line" })
|
||||
map("n", "<a-l>", "$", { desc = "Last character of Line" })
|
||||
|
||||
-- Copy whole file content to clipboard with C-y
|
||||
-- Copy whole text to clipboard
|
||||
map("n", "<C-c>", ":%y+<CR>")
|
||||
|
||||
-- Select all text
|
||||
map("n", "<C-n>", "gg<S-V>G")
|
||||
|
||||
-- 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')
|
||||
|
|
Loading…
Add table
Reference in a new issue