How do you use lookbehind in Vim search patterns?
Answer
/\(foo\)\@<=bar
Explanation
Use \@<= for positive lookbehind. /\(foo\)\@<=bar matches 'bar' only when preceded by 'foo'. Use \@<! for negative lookbehind.
/\(foo\)\@<=bar
Use \@<= for positive lookbehind. /\(foo\)\@<=bar matches 'bar' only when preceded by 'foo'. Use \@<! for negative lookbehind.