From d376952b51ef7c228427efa6dc3209521f875a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Fri, 22 Dec 2023 00:05:07 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20config(nvim):=20keymap=20c?= =?UTF-8?q?hanges?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lua/config/keymaps.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua index 1fe7c3d8..5648be2e 100644 --- a/.config/nvim/lua/config/keymaps.lua +++ b/.config/nvim/lua/config/keymaps.lua @@ -33,12 +33,10 @@ end, { desc = "Toggle Background" }) map("n", "fT", "") +-- Center the screen automatically map("n", "", "zz") - map("n", "", "zz") - map("n", "n", "nzzzv") - map("n", "N", "Nzzzv") map("n", "uS", function() @@ -53,14 +51,14 @@ map("n", "cif", "LazyFormatInfo", { desc = "Formatting" }) map("n", "cir", "LazyRoot", { desc = "Root" }) map("n", "cie", "LazyExtras", { desc = "Extras" }) -map("n", "", "_", { desc = "First character of Line" }) -map("n", "", "$", { desc = "Last character of Line" }) +map("n", "", "_", { desc = "First character of Line" }) +map("n", "", "$", { desc = "Last character of Line" }) -- Copy whole text to clipboard map("n", "", ":%y+", { desc = "Copy whole text to clipboard", silent = true }) -- Select all text -map("n", "", "ggG", { desc = "Select all text", silent = true }) +map("n", "", "ggG", { desc = "Select all text", silent = true, noremap = true }) -- 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.