Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug substitution with parenthesis #4754

Closed
jerabaul29 opened this issue Apr 20, 2020 · 2 comments
Closed

bug substitution with parenthesis #4754

jerabaul29 opened this issue Apr 20, 2020 · 2 comments
Labels
status/works-with-neovim https://github.com/VSCodeVim/Vim#neovim-integration

Comments

@jerabaul29
Copy link

Writing the following substitution:

:%s/ ))/))/gc

Produces error:

CommandLine: Error executing cmd=%s/ ))/))/gc. err=SyntaxError: Invalid regular expression: / ))/: Unmatched ')'.

while this works fine in Vim.

@J-Fields
Copy link
Member

I think this is due to the fact we use javascript's regex engine, not an emulation of vim's. #3996

@J-Fields
Copy link
Member

J-Fields commented May 5, 2020

This will work as expected if you enable neovim integration.

@J-Fields J-Fields added the status/works-with-neovim https://github.com/VSCodeVim/Vim#neovim-integration label May 5, 2020
@J-Fields J-Fields closed this as completed May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/works-with-neovim https://github.com/VSCodeVim/Vim#neovim-integration
Projects
None yet
Development

No branches or pull requests

2 participants