diff options
| author | Xander Swan <email> | 2025-12-03 10:00:41 -0500 |
|---|---|---|
| committer | Xander Swan <email> | 2025-12-03 10:00:41 -0500 |
| commit | b8d43fa8c4489841fa1a98757365062444057d1c (patch) | |
| tree | 60314f8b3257f9b0484dc8cf2a1550aa7016e6c5 /.config/nvim/lua/map.lua | |
| parent | 12002bca45ef1c2b3352c688fef30a29e20095ac (diff) | |
Switch to alacritty
Diffstat (limited to '.config/nvim/lua/map.lua')
| -rw-r--r-- | .config/nvim/lua/map.lua | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/.config/nvim/lua/map.lua b/.config/nvim/lua/map.lua index a627bb5..ace41fb 100644 --- a/.config/nvim/lua/map.lua +++ b/.config/nvim/lua/map.lua @@ -2,18 +2,6 @@ vim.g.mapleader = " " local nv = {"n", "v"} -local function definepairs(replacement, char) - vim.keymap.set("o", "i" .. replacement, "i" .. char, {}) - vim.keymap.set("o", "a" .. replacement, "a" .. char, {}) -end - -definepairs("b", "(") -definepairs("s", "\"") -definepairs("q", "'") -definepairs("t", "{") -definepairs("r", "[") -definepairs("a", "<") - vim.keymap.set(nv, "gm", "gM", {}) vim.keymap.set(nv, "gM", "gMi", {}) @@ -44,19 +32,11 @@ vim.keymap.set(nv, "<C-.>", "<C-w>>", {}) -- Make exiting insert mode in terminal mode easier vim.keymap.set("t", "<ESC>", "<C-\\><C-n>", {}) --- Make it harder to accidentally undo -vim.keymap.set(nv, "<C-u>", "u", {}) -vim.keymap.set(nv, "u", "<nop>", {}) - -- Center when moving around at high speeds -vim.keymap.set(nv, "<A-k>", "<C-u>zz", {}) -vim.keymap.set(nv, "<A-j>", "<C-d>zz", {}) +vim.keymap.set(nv, "<C-u>", "<C-u>zz", {}) +vim.keymap.set(nv, "<C-d>", "<C-d>zz", {}) vim.keymap.set(nv, "G", "Gzz", {}) --- Delete line content. I didn't do ddO because that would extend comments if --- you were just above one. -vim.keymap.set("n", "dc", "cc<ESC>", {}) - -- Make going to the end of a line as easy as going to the beginning vim.keymap.set({"n", "v", "o"}, "+", "$", {}) |
