VIM in VSCode.

  • 30th Jun 2024
  • •
  • 1 min read
  • • 
  • Tags: 
  • Vim, 
  • VSCode
  • Last updated on 22nd Jul 2024

Using Vim in VSCode

A few weeks ago, I started using the Vim extension in VSCode to code more comfortably.

Favorite Actions

The following are the actions that I use most frequently:

  • Basic movement keys: h,j,k,l
  • Word movements: w,b,e
  • Insert new line after / before: o / O
  • Exit character (delete): x
  • Insert: i
  • Appending: a
  • Inserting at the beginning of the line: I
  • Appending at the end of the line: A
  • Find in the current line: f
  • Yanking a line: yy
  • Yanking inside word: yiw
  • Pasting: p
  • Searching: /
  • Changing a word: ciw
  • Changing inside double quotes: ci"
  • Changing inside tag: cit
  • Repeat last action: .
  • Replace mode: R
  • Center the view: zz
  • Delete the line: dd
  • Delete from the cursor to the end of the line: D
  • Macros:
    • Record a macro in j position
    • Stop the macro recording
    • Play the macro: qj / q / @j
    • Play the macro 5 times: 5@q