mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
add(nvim): spectre for regex search and replace
This commit is contained in:
parent
59d2779494
commit
5679990543
3 changed files with 5 additions and 6 deletions
|
|
@ -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" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue