VIM Editor Keyboard Shortcuts

Vim has two types of modes for smooth operations inside it

  1. Insert mode - to make changes inside a file currently opened in the editor Esc -> i

  2. Visual mode - to use shortcuts and various operations in the editor Esc -> v

  3. Command mode - to use various commandsfor fast document processing Esc

Shortcuts keys

  1. Delete entire word under cursor in COMMAND MODE: [cm] diw d: delete i: internal/inner w: word

  2. Change entire word under cursor and go to INSERT MODE: [cm] ciw c: change i: internal/inner w: word

  3. Delete word previous to the cursor in INSERT MODE: Ctrl + w

  4. Move to the top of the document in VISUAL MODE: Esc -> gg

  5. Move to end of the document in VISUAL MODE: Esc -> G

Last updated