diff options
| author | Xander Swan <email> | 2025-12-03 10:00:42 -0500 |
|---|---|---|
| committer | Xander Swan <email> | 2025-12-03 10:00:42 -0500 |
| commit | 9a128539e675333e7441ad893c61f8dce625f317 (patch) | |
| tree | 3b4b99678c026d2854857259a9803be68448b032 /.config/nvim/lua/map.lua | |
| parent | b3d6b3ffb2e8fb2c2f6dca90120673f22a40b0a3 (diff) | |
Update lots and lots
Diffstat (limited to '.config/nvim/lua/map.lua')
| -rw-r--r-- | .config/nvim/lua/map.lua | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/.config/nvim/lua/map.lua b/.config/nvim/lua/map.lua deleted file mode 100644 index b52ad22..0000000 --- a/.config/nvim/lua/map.lua +++ /dev/null @@ -1,36 +0,0 @@ -vim.g.mapleader = " " - -local nv = {"n", "v"} - -vim.keymap.set(nv, "gm", "gM", {}) -vim.keymap.set(nv, "gM", "gMi", {}) - --- Make exiting insert mode in terminal mode easier -vim.keymap.set("t", "<ESC>", "<C-\\><C-n>", {}) - --- Center when moving around at high speeds -vim.keymap.set(nv, "<C-u>", "<C-u>zz", {}) -vim.keymap.set(nv, "<C-d>", "<C-d>zz", {}) -vim.keymap.set(nv, "G", "Gzz", {}) - --- Make going to the end of a line as easy as going to the beginning -vim.keymap.set({"n", "v", "o"}, "+", "$", {}) - --- Yanking and pasting -vim.keymap.set(nv, "<leader>y", "\"+y", {}) -vim.keymap.set(nv, "<leader>p", "\"+p", {}) -vim.keymap.set("x", "p", "\"_dP", {}) -vim.keymap.set("x", "<leader>P", "p", {}) - --- Commands -vim.keymap.set(nv, "<leader>c", "<CMD>set invhlsearch<CR>", {silent=true}) -vim.keymap.set("n", "{", "<CMD>cp<CR>", {silent=true}) -vim.keymap.set("n", "}", "<CMD>cn<CR>", {silent=true}) - --- Common typo with me -vim.api.nvim_create_user_command("W", "w", {bang=true}) -vim.api.nvim_create_user_command("Wa", "wa", {bang=true}) -vim.api.nvim_create_user_command("Wq", "wq", {bang=true}) -vim.api.nvim_create_user_command("Wqa", "wqa", {bang=true}) -vim.api.nvim_create_user_command("Q", "q", {bang=true}) -vim.api.nvim_create_user_command("Qa", "qa", {bang=true}) |
