Skip to content
Snippets Groups Projects
Verified Commit 8470992c authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

capture the word for global replace (and format)

parent 10c89a49
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ vim.keymap.set("n", "Q", "<nop>")
vim.keymap.set("i", "<C-c>", "<Esc>", { silent = true })
vim.keymap.set(
"n", "<leader>zr", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]],
"n", "<leader>zr", [[:%s/\(\<<C-r><C-w>\>\)/<C-r><C-w>/gI<Left><Left><Left>]],
{ desc = "replace all occurences of the word under the cursor" }
)
vim.keymap.set("n", "<leader>zx", "<cmd>!chmod +x %<CR>", { silent = true })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment