By default, vim's reg-ex matching is weird. For example: > * is special when not escaped but… > + is special when escaped > \{x,y} (escaping only the opening bracket) works but… > You have to use \( \) (escape both parens) > [] is special when both are unescaped Source: https://wincent.com/wiki/Vim_regexes For more details, check out Greg Hurrell's screencast: https://www.youtube.com/watch?v=VjOcINs6QWs
parent
60941bc007
commit
9cd1b37475
1 changed files with 4 additions and 0 deletions
Loading…
Reference in new issue