5 ms·
I also can never remember which characters are magic and which are literal in different implementations. This is mostly Vim's fault, where the rules are impossi
by OskarS 10y ago
I also can never remember which characters are magic and which are literal in different implementations. This is mostly Vim's fault, where the rules are impossible to remember and often conflict with other implementations. Given that it's the most common regex thing I use day-to-day, it's very annoying.
- EvilTerran 10y agoYeah, I agree, vim's default regex syntax is infuriatingly inconsistent. I pretty much always start my REs with "/\v"[0], to the point it's in my muscle memory: I'll find myself looking at that in the cmdline before I've even drafted the pattern in my head. (Then sometimes I'll realise I just want to find an exact string full of symbols, and have to back up and capitalize the "v".) ... I should probably come up with some mappings so the \v is inserted automatically. [0] http://vimdoc.sourceforge.net/htmldoc/pattern.html#/\v http://vimdoc.sourceforge.net/htmldoc/pattern.html#/\v