2023-10-22 14:38:18 +00:00
|
|
|
vim.keymap.set("n", "<leader>w", vim.cmd.w)
|
2024-02-23 23:29:29 +00:00
|
|
|
vim.keymap.set({ "n", "i" }, "<C-S>", vim.cmd.w)
|
2024-04-14 23:07:15 +00:00
|
|
|
--vim.keymap.set("n", "<leader>e", vim.cmd.E)
|
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")
|
|
|
|
|
2024-03-03 00:00:41 +00:00
|
|
|
vim.keymap.set("n", "<C-h>", "<C-w>h")
|
|
|
|
vim.keymap.set("n", "<C-j>", "<C-w>j")
|
|
|
|
vim.keymap.set("n", "<C-k>", "<C-w>k")
|
|
|
|
vim.keymap.set("n", "<C-l>", "<C-w>l")
|
|
|
|
|
2023-12-16 22:48:08 +00:00
|
|
|
vim.keymap.set("v", "<Tab>", ">gv")
|
|
|
|
vim.keymap.set("v", "<S-Tab>", "<gv")
|
|
|
|
|
2024-01-14 16:40:13 +00:00
|
|
|
vim.keymap.set("n", "Q", "@@", { noremap = true, silent = true })
|
2023-12-29 15:52:19 +00:00
|
|
|
|
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", "<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
|
|
|
|
2024-02-24 21:04:19 +00:00
|
|
|
vim.keymap.set("v", "<leader>rs", [[:s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
|
|
|
|
vim.keymap.set("n", "<leader>ra", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
|
|
|
|
vim.keymap.set("n", "<leader>rc", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gcI<Left><Left><Left><Left>]])
|
2023-11-27 10:36:35 +00:00
|
|
|
|
2024-02-19 19:35:04 +00:00
|
|
|
vim.keymap.set("n", "<leader>m", "<cmd>!make > /dev/null<CR>", { silent = true })
|
2023-10-21 13:05:20 +00:00
|
|
|
|
2024-01-14 16:40:13 +00:00
|
|
|
vim.keymap.set("n", "<leader>vpp", "<cmd>so ~/.config/nvim/lua/tiagorg/packer.lua<CR>");
|
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")
|