2023-11-06 20:11:34 +00:00
|
|
|
--vim.keymap.set("n", "<leader>e", vim.cmd.E)
|
2023-10-22 14:38:18 +00:00
|
|
|
vim.keymap.set("n", "<leader>w", vim.cmd.w)
|
2023-10-21 13:05:20 +00:00
|
|
|
|
|
|
|
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
|
|
|
|
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
|
|
|
|
|
2023-12-16 22:48:08 +00:00
|
|
|
vim.keymap.set("v", "<Tab>", ">gv")
|
|
|
|
vim.keymap.set("v", "<S-Tab>", "<gv")
|
|
|
|
|
2023-12-29 15:52:19 +00:00
|
|
|
vim.keymap.set("n", "X", "@@", { noremap = true, silent = true })
|
|
|
|
|
2023-10-21 13:05:20 +00:00
|
|
|
vim.keymap.set("n", "J", "mzJ`z")
|
|
|
|
vim.keymap.set("n", "<C-d>", "<C-d>zz")
|
|
|
|
vim.keymap.set("n", "<C-u>", "<C-u>zz")
|
|
|
|
vim.keymap.set("n", "n", "nzzzv")
|
|
|
|
vim.keymap.set("n", "N", "Nzzzv")
|
|
|
|
|
2023-10-22 14:38:18 +00:00
|
|
|
vim.keymap.set({ "n", "v" }, "<leader>y", [["+y]])
|
2023-10-21 13:05:20 +00:00
|
|
|
vim.keymap.set("n", "<leader>Y", [["+Y]])
|
|
|
|
|
2023-10-22 14:38:18 +00:00
|
|
|
vim.keymap.set({ "n", "v" }, "<leader>d", [["_d]])
|
2023-10-21 13:05:20 +00:00
|
|
|
|
2023-12-29 15:52:19 +00:00
|
|
|
vim.keymap.set("n", "<leader>df", "<cmd>AerialPrev<CR>V$%d")
|
|
|
|
|
2023-10-21 13:05:20 +00:00
|
|
|
vim.keymap.set("i", "<C-c>", "<Esc>")
|
|
|
|
|
|
|
|
vim.keymap.set("n", "Q", "<nop>")
|
|
|
|
vim.keymap.set("n", "<leader>f", vim.lsp.buf.format)
|
2023-10-30 15:54:36 +00:00
|
|
|
|
|
|
|
vim.keymap.set("n", "<leader>af", "ggVG")
|
|
|
|
vim.keymap.set("n", "<leader>ab", "GVgg")
|
2023-10-21 13:05:20 +00:00
|
|
|
|
|
|
|
vim.keymap.set("n", "<C-k>", "<cmd>cnext<CR>zz")
|
|
|
|
vim.keymap.set("n", "<C-j>", "<cmd>cprev<CR>zz")
|
|
|
|
vim.keymap.set("n", "<leader>k", "<cmd>lnext<CR>zz")
|
|
|
|
vim.keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz")
|
|
|
|
|
2023-11-11 14:17:42 +00:00
|
|
|
vim.keymap.set("n", "<leader>r", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
|
2023-11-27 10:36:35 +00:00
|
|
|
|
2023-12-29 15:52:19 +00:00
|
|
|
-- vim.keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true })
|
|
|
|
-- vim.keymap.set("n", "<leader>X", "<cmd>!chmod -x %<CR>", { silent = true })
|
2023-11-27 10:36:35 +00:00
|
|
|
vim.keymap.set("n", "<leader>m", "<cmd>!make<CR>", { silent = true })
|
2023-10-21 13:05:20 +00:00
|
|
|
|
2023-11-06 20:11:34 +00:00
|
|
|
vim.keymap.set("n", "<leader>vpp", "<cmd>e ~/.config/nvim/lua/tiagorg/packer.lua<CR>");
|
2023-10-21 13:05:20 +00:00
|
|
|
|
2023-12-11 23:33:21 +00:00
|
|
|
vim.keymap.set("n", "<leader>so", function()
|
2023-10-21 13:05:20 +00:00
|
|
|
vim.cmd("so")
|
|
|
|
end)
|
2023-11-06 20:11:34 +00:00
|
|
|
|
|
|
|
vim.keymap.set("n", "<C-q>", "<cmd>qa<CR>")
|
2023-11-08 19:33:59 +00:00
|
|
|
vim.keymap.set("n", "<A-t>", "<cmd>tabnew<CR><cmd>NvimTreeFocus<CR>")
|
2023-11-27 10:36:35 +00:00
|
|
|
vim.keymap.set("n", "<S-Tab>", "<C-w>w")
|