PracticalVim Tip76 - yszheda/wiki GitHub Wiki
- `/\v<{word}>`
- We can approximate the meaning of `<` and `>` by combining the `\w` and `\W` character classes with the `\zs` and `\ze` match delimiters.
- In a very magic search, the naked < and > characters are interpreted as word delimiters, but in magic, nomagic, and very nomagic searches we have to escape them.
- word delimiters are used automatically each time we trigger the `*` or `#` commands.
- `g*` and `g#` perform the same searches without word delimiters.
Example:
replace all occurrences of FIRSTNAME LASTNAME with LASTNAME, FIRSTNAME