From 3b2163b821f4dbf1003804b9b19fd276dc4bc350 Mon Sep 17 00:00:00 2001 From: tdback Date: Wed, 4 Dec 2024 18:48:24 -0500 Subject: initial commit to new repo --- plugin/keymaps.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 plugin/keymaps.lua (limited to 'plugin/keymaps.lua') diff --git a/plugin/keymaps.lua b/plugin/keymaps.lua new file mode 100644 index 0000000..62b6051 --- /dev/null +++ b/plugin/keymaps.lua @@ -0,0 +1,19 @@ +vim.keymap.set("n", "n", "nzzzv") +vim.keymap.set("n", "N", "Nzzzv") +vim.keymap.set("n", "J", "mzJ`z") +vim.keymap.set("v", "J", ":m '>+1gv=gv") +vim.keymap.set("v", "K", ":m '>-2gv=gv") +vim.keymap.set("n", "", "zz") +vim.keymap.set("n", "", "zz") +vim.keymap.set({ "n", "v" }, "d", [["_d]]) +vim.keymap.set("n", "f", vim.lsp.buf.format) +vim.keymap.set("x", "p", [["_dP]]) +vim.keymap.set("n", "hh", ":help") +vim.keymap.set("n", "s", [[:%s/\<\>//gI]]) +vim.keymap.set("n", "x", "!chmod +x %", { silent = true }) +vim.keymap.set({ "n", "v" }, "y", [["+y]]) +vim.keymap.set("n", "Y", [["+Y]]) +vim.keymap.set("n", "", "") +vim.keymap.set("n", "", "") +vim.keymap.set("n", "", "") +vim.keymap.set("n", "", "") -- cgit v1.2.3