summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-09-12 21:20:44 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-09-12 21:20:44 +0200
commita2bb0884a4561c85e22a072cfffbcba2e82755be (patch)
tree8911f595c82c25d8e563beaff1cbce07fe15eb56
parentd8924f784a5262df5222cea28433aed865826f87 (diff)
nvim: Add more bindings
-rw-r--r--.config/nvim/lua/mango/remap.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/nvim/lua/mango/remap.lua b/.config/nvim/lua/mango/remap.lua
index a8867d8..b90950e 100644
--- a/.config/nvim/lua/mango/remap.lua
+++ b/.config/nvim/lua/mango/remap.lua
@@ -43,3 +43,10 @@ remap('nv', '<leader>d', '"_d')
-- Copy to system clipboard
remap('nv', '<leader>y', '"+y')
remap('n', '<leader>Y', '"+Y')
+
+-- Swap the jump-to-mark bindings
+remap('nv', "'", '`')
+remap('nv', '`', "'")
+
+-- Transpose characters, because ‘xp’ is kinda awkward
+remap('n', '<leader>t', 'xp')