



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




By Dejan Panovski • Updated on Jan 12, 2026 •
i Insert mode (before cursor) I (^) Insert at line beginning a (^) Insert mode (after cursor) A Insert at line end o (^) New line below O (^) New line above Esc Return to Normal mode v (^) Visual mode V (^) Visual line mode Ctrl+v Visual block mode
:w (^) Save file :w filename Save as filename :q (^) Quit :q! (^) Quit without saving :wq Save and quit :x (^) Save and quit ZZ (^) Save and quit ZQ Quit without saving
Navigation Move around the file efficiently. h (^) Move left j (^) Move down k (^) Move up l (^) Move right w (^) Next word b (^) Previous word e (^) End of word (^0) Line beginning $ Line end ^ (^) First non-blank char Jump Around Navigate to specific locations quickly. gg Go to first line G (^) Go to last line 5G (^) Go to line 5 :5 Go to line 5 Ctrl+f (^) Page down Ctrl+b (^) Page up Ctrl+d Half page down Ctrl+u (^) Half page up % (^) Jump to matching bracket H Top of screen M (^) Middle of screen L (^) Bottom of screen
Search Find text in the file. /pattern (^) Search forward ?pattern (^) Search backward n (^) Next match N (^) Previous match
:noh (^) Clear search highlight Find & Replace Search and replace text patterns. :s/old/new/ Replace first on line :s/old/new/g (^) Replace all on line :%s/old/new/g (^) Replace all in file :%s/old/new/gc Replace with confirm :5,10s/old/new/g (^) Replace in lines 5- Visual Mode Select and manipulate text blocks. v Start visual mode V (^) Select lines Ctrl+v (^) Select block y Yank selection d (^) Delete selection > (^) Indent selection < Unindent selection ~ (^) Toggle case u (^) Lowercase U Uppercase
Indentation Adjust text indentation. >> (^) Indent line << (^) Unindent line 5>> (^) Indent 5 lines = (^) Auto-indent gg=G (^) Auto-indent entire file :set tabstop=4 (^) Set tab width :set expandtab (^) Use spaces for tabs Line Numbers Display and navigate with line numbers. :set number Show line numbers :set nu (^) Show line numbers :set nonumber (^) Hide line numbers :set relativenumber Relative line numbers :set rnu (^) Relative line numbers Multiple Files Work with multiple files and buffers. :e filename Open file :bn (^) Next buffer :bp (^) Previous buffer :bd Close buffer :ls (^) List buffers :sp filename (^) Horizontal split :vsp filename Vertical split Ctrl+w w (^) Switch window Ctrl+w q (^) Close window :tabnew New tab gt (^) Next tab gT (^) Previous tab