add(nvim): spectre for regex search and replace

This commit is contained in:
Léana 江 2023-05-26 01:53:03 +02:00 committed by Léana 江
parent 59d2779494
commit 5679990543
3 changed files with 5 additions and 6 deletions

View file

@ -29,11 +29,6 @@ vim.keymap.set("n", "<leader>nf",
{ desc = "Open new buffer" }
)
vim.keymap.set("n", "<leader>s",
[[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]],
{ desc = "Replace current word", noremap = true }
)
vim.keymap.set("c", "#lm", [[\{-}]], { desc = "[L]azy [M]atch" })
vim.keymap.set("c", "#capl", [[\(.\{-}\)]], { desc = "[CAP]ture [L]ess" })
vim.keymap.set("c", "#capm", [[\(.*\)]], { desc = "[CAP]ture [M]ore" })