vim multicursor in vs code

2022-04-03

 | 

~1 min read

 | 

149 words

I’m working on adopting more VIM into my life (again) and this time I’m starting by adding the Vim keybindings within VS Code.

Almost immediatley on adopting this new approach, however, I felt like I was missing something. Specifically, I couldn’t figure out how to get the multiple cursors I’d grown so used to to work.

Fortunately, a bit of sleuthing around the interwebs found the answer:

  1. Highlight the area you’re interested in in VISUAL mode
  2. Move into VISUAL mode with multi cursor with Shift+Option+I
  3. Navigate as you would normally (e.g., 0 to go the beginning of the line, $ to go the end of the line)

The nice thing about this approach is you can now move into INSERT mode in place with Shift+I.

Resources

  • Nick Janetakis wrote up his similar discovery here.
  • Github Issue for the Vim extension on multicursor use.


Hi there and thanks for reading! My name's Stephen. I live in Chicago with my wife, Kate, and dog, Finn. Want more? See about and get in touch!