Skip to content

Commit 6224e1b

Browse files
committed
nvim(mappings): /? -> <Space>/? for very magic regex
1 parent 3c064f5 commit 6224e1b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

nvim/.config/nvim/lua/mappings/misc.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ c("x!!", "x !sudo tee > /dev/null %") -- Save as sudo
4242
-- Search
4343
n("<leader>/", [[/\<\><Left><Left>]]) -- Search whole word
4444
x("&", '"hy:%s/<C-r>h//gc<Left><Left><Left>') -- Substitute selection
45-
n("/", [[/\v]]) -- Very magic regex
46-
n("?", [[:%s/\v]]) -- Very magic regex
47-
x("?", [[:s/\v]]) -- Very magic regex
45+
46+
n("<Space>/", [[/\v]]) -- Very magic regex
47+
n("<Space>?", [[:%s/\v]]) -- Very magic regex
48+
x("<Space>?", [[:s/\v]]) -- Very magic regex
4849

4950
-- Misc
5051
x(".", ":normal .<CR>", {silent = true}) -- Dot repeat

0 commit comments

Comments
 (0)