TIL: VSCode + Vim MultiSelect

zenmnky

Justin Hager

Posted on March 25, 2021

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

💖 💪 🙅 🚩
zenmnky
Justin Hager

Posted on March 25, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

TIL: VSCode + Vim MultiSelect
todayilearned TIL: VSCode + Vim MultiSelect

March 25, 2021