# HG changeset patch # User Meredith Howard # Date 1678608229 18000 # Node ID 83c9f8460bde52264fe3aef43f4bb1a7925683a2 # Parent b59861305252c0172bcefb0f2cf9b89a93a6857e continue to confuse the verymagic options diff --git a/.config/nvim/lua/config/autocmds.lua b/.config/nvim/lua/config/autocmds.lua --- a/.config/nvim/lua/config/autocmds.lua +++ b/.config/nvim/lua/config/autocmds.lua @@ -59,9 +59,9 @@ autocmd(g, "BufReadPost", "quickfix", { -- Hide ctags regex anchors fn.matchadd("Conceal", [[\m|\zs\^\\V\|\\$\ze|]]) - -- highlight match in line. if tagname begins with / the rest is a \V + -- highlight match in line. if tagname begins with / the rest is a \v -- regex. match must be between vertical bars, so its the 2nd column. - local tagmatch = string.gsub(vim.fn.gettagstack().items[1].tagname, "^/", "\\V", 1) + local tagmatch = string.gsub(vim.fn.gettagstack().items[1].tagname, "^/", "\\v", 1) fn.matchadd("Underlined", [[\m|.*\zs]] .. tagmatch .. [[\m\ze.*|]]) end diff --git a/.config/nvim/lua/config/commands.lua b/.config/nvim/lua/config/commands.lua --- a/.config/nvim/lua/config/commands.lua +++ b/.config/nvim/lua/config/commands.lua @@ -26,7 +26,7 @@ command("Grep", function(ctx) }, " ") fn.setqflist({}, " ", { title = grepcmd, lines = fn.systemlist(grepcmd) }) - fn.setreg("/", [[\V]] .. pattern) + fn.setreg("/", [[\v]] .. pattern) cmd.copen() cmd.cfirst() end, { nargs = "*", complete = "file" })