-
Notifications
You must be signed in to change notification settings - Fork 5
PracticalVim Tip77
Shuai YUAN edited this page May 29, 2015
·
1 revision
- `\zs`: marks the start of a match
- `\ze`: marks the end of a match
- Vim’s `\zs` and `\ze` items are conceptually similar to Perl’s lookaround assertions.
- Vim also supports the full matrix of negative/positive lookahead/lookbehind assertions, but the syntax differs from Perl.
Example: Rewrite
using Vim’s positive lookaround items