diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-17 12:37:41 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-17 12:37:41 +0200 |
commit | c63da08e0cad6c38905b06b83d178a443393ac7e (patch) | |
tree | 6430c5a46dcb2eca1aa34644076e0d76a93c22ee /lua/config/map.lua | |
parent | e02461e89da0459dee3a51a58b6ec8067840fe1f (diff) |
checkpoint
Diffstat (limited to 'lua/config/map.lua')
-rw-r--r-- | lua/config/map.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/config/map.lua b/lua/config/map.lua index 61bb952..b223650 100644 --- a/lua/config/map.lua +++ b/lua/config/map.lua @@ -92,3 +92,7 @@ map("n", "<C-s>g", "z=1<cr><cr>", { noremap = true }) map("n", " td", function() vim.diagnostic.enable(verbose_toggle(vim.diagnostic.is_enabled(), "diagnostics")) end, { desc = "Toggle diagnostics" }) + +-- editing +map("n", " sf", ":%s/\\<<C-R><C-W>\\>//gc<Left><Left><Left>", { desc = "Replace word under cursor in file" }) +map("n", " sl", "", { desc = "Replace word under cursor on current line" }) |