normal·mode
~ / search / magiclesson 5/7

Very magic \v, very nomagic \V

Write regexes without a forest of backslashes, or search text exactly as written.

3 drills

  1. Swap parts with \v groups: Rewrite every line with one :%s command, using a very magic pattern with groups and \1 \2 in the replacement.
  2. Alternatives with \v: Make the change on every line that needs it with one :%s, using | (or) in a very magic pattern.
  3. Search literally with \V: The target text is full of characters that mean something in a pattern. Land on it with one search.

The drill editor loads in your browser.

outside the editor the page is in normal mode: ? keymaps · / find · : commandsfound this useful? ☕ support it ·credits · source · not affiliated with Vim or Neovim