DEV Community

loading...
Cover image for TIL: VSCode + Vim MultiSelect

TIL: VSCode + Vim MultiSelect

zenmnky profile image Justin Hager Originally published at blog.justinhager.codes ・1 min read

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

Discussion (0)

pic
Editor guide