DEV Community

Cover image for TIL: VSCode + Vim MultiSelect
Justin Hager
Justin Hager

Posted on • Originally published at blog.justinhager.codes

TIL: VSCode + Vim MultiSelect

Context:

Problem:

problem

  • Ctrl+d keybinding does not work as expected.
  • Expecting multi-select of highlighted word. Instead, get some type of chunk selection.

Solutions:

1) Play a Vim melody combo: viw + gb

  • viw to select the word
  • gb to grab next occurrence using viwgb

2) Enable the Ctrl+d keybinding:

  • Edit VS Code's settings.json to include the following:
"vim.handleKeys": {
    "<C-d>": false
  }

Enter fullscreen mode Exit fullscreen mode

modifying settings and usting ctrl+D

Reference:

https://github.com/VSCodeVim/Vim/issues/2144

Extra:

Gif screen recordings created in Linux with Peek

Top comments (1)

Collapse
 
ippatev profile image
alɔeksandyr

nice!