I need to repeat the delete of matching lines in vscode-vim. Unfortunately the g has not been implemented yet, so I'm trying to figure out a way to repeat the same change in command-line mode using repetitions.

The following


will print a Traling characters error.

  • Welcome to Vi and Vim! Are you saying that :g/pattern/d will not work in vscode-vim? Is that the command you're trying to execute that seems to not be implemented?
    – filbranden
    Commented Jul 29, 2022 at 16:32
  • See also "Neovim Integration" under vscode-vim readme. It seems to extend vscode-vim to support :g, :normal, etc.
    – filbranden
    Commented Jul 29, 2022 at 16:35
  • You might also want to look into vscode-neovim instead of vscode-vim, see this article which talks about it and explores the differences between them: galenwong.github.io/blog/2021-03-22-vscode-neovim-vs-vscodevim
    – filbranden
    Commented Jul 29, 2022 at 16:41

1 Answer 1


After running a command :/pattern/delete, the : register can be used to re-run the command like @:, which also takes a count (so 999@: works). After the first use of @:, you can use @@ (unless you execute another register in between, since @@ always uses the last-executed register). With high counts this can simulate the effect of :global and more besides.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.