change opened buffers keymap and fix replace selection

This commit is contained in:
vladstojna 2023-07-10 16:50:53 +01:00 committed by vladstojna
parent 7d9a3c7c73
commit aff3b8898c
2 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@ vim.keymap.set("n", "<leader>ru",
[[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]],
{ desc = "[R]eplace word [U]nder cursor" })
vim.keymap.set("x", "<leader>r",
[["hy:%s/\<C-r>h/<C-r>h/gI<Left><Left><Left>]],
[["hy:%s/<C-r>h/<C-r>h/gI<Left><Left><Left>]],
{ desc = "[R]eplace selection" })
vim.keymap.set("n", "S", ":w<cr>")