You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When using the Vim search you are usually able to include only a part of the match as search result. This is not possible in VSCodeVim, yet.
Example from Practical Vim: /\v\<\/?h\zs\d
This finds all digits in html heading tags as in
<h2>Heading number 1</h2>
<h3>Number 2 heading</h3>
<h4>Another heading</h4>
.
Describe the solution you'd like
I'd like to see the vanilla Vim regex engine behaviour here, because this is an essential feature for pattern search.
The text was updated successfully, but these errors were encountered:
\zs and \ze are literally my favourite components to vim regexp
Unfortunately I think they don't work because VSCodeVim uses regular Javascript for its regexp engine (according to #991), which iirc doesn't have the ability for \zs and \ze
J-Fields
changed the title
Make \zs and \ze work in Vim search to only include substring of match
Make \zs and \ze work in Vim search to only include substring of match
Oct 20, 2021
Is your feature request related to a problem? Please describe.
When using the Vim search you are usually able to include only a part of the match as search result. This is not possible in VSCodeVim, yet.
Example from Practical Vim:
/\v\<\/?h\zs\d
This finds all digits in html heading tags as in
.
Describe the solution you'd like
I'd like to see the vanilla Vim regex engine behaviour here, because this is an essential feature for pattern search.
The text was updated successfully, but these errors were encountered: