Vim: Substitute interactive mode doesn't work

Please thumbs-up đź‘Ť this issue if it personally affects you! You can do this by clicking on the emoji-face on the top right of this post. Issues with more thumbs-up will be prioritized.


What did you do?

since ctrl+d does not work proper trying to use the substitute for multi-place edits Put the exact keys you pressed. :%s/someWord/anotherWord/gc

What did you expect to happen?

ask me to confirm before replacing the matches

What happened instead?

c flag is ignored and everything is just replaced

Technical details:

  • VSCode Version:1.6x
  • VsCodeVim Version: .4
  • OS: ubuntu 16.4

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 46
  • Comments: 16 (5 by maintainers)

Most upvoted comments

Yes please! This is a vital part of my workflow

We didn’t implement c flag yet but it’s quite easy.

Bit frustrating that the roadmap says confirm works, but here it’s an acknowledged bug…

It looks to me like using replace with the c flag breaks the replace altogether. Any update on this?

VSCode 1.17.2, MacOS High Sierra, VSCode Vim 0.10.2

Interesting, this is now only fixed for the case where you are NOT using the neovim integration.

Possibly dumb question, but couldn’t the -c tag simply be implemented through VS Code’s built in find-and-replace functionality? As in if the -c tag is displayed, pass along the inputs to the built in VS Code version (so the find value, the replace value, the particular section to look at, etc), then provide key mappings to connect the standard Vim commands to the VS Code equivalents when in this mode?