diff options
Diffstat (limited to 'plugin/keymaps.lua')
-rw-r--r-- | plugin/keymaps.lua | 19 |
1 files changed, 19 insertions, 0 deletions
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 '>+1<CR>gv=gv") +vim.keymap.set("v", "K", ":m '>-2<CR>gv=gv") +vim.keymap.set("n", "<C-d>", "<C-d>zz") +vim.keymap.set("n", "<C-u>", "<C-u>zz") +vim.keymap.set({ "n", "v" }, "<leader>d", [["_d]]) +vim.keymap.set("n", "<leader>f", vim.lsp.buf.format) +vim.keymap.set("x", "<leader>p", [["_dP]]) +vim.keymap.set("n", "<leader>hh", ":help<Space>") +vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]]) +vim.keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true }) +vim.keymap.set({ "n", "v" }, "<leader>y", [["+y]]) +vim.keymap.set("n", "<leader>Y", [["+Y]]) +vim.keymap.set("n", "<up>", "<C-w><up>") +vim.keymap.set("n", "<down>", "<C-w><down>") +vim.keymap.set("n", "<left>", "<C-w><left>") +vim.keymap.set("n", "<right>", "<C-w><right>") |