Vi Apr 2026
Used for navigation, deleting, copying, pasting, and saving. Almost every letter key performs an action rather than typing characters. Insert Mode: Used for entering text.
: Move cursor left, down, up, right (alternative to arrow keys). w : Move forward one word. b : Move backward one word. 0 (zero) : Move to the beginning of the line. $ : Move to the end of the line. 3. Editing (Command Mode) x : Delete the character under the cursor. dd : Delete (cut) the entire current line. yy : Yank (copy) the current line. p : Paste the copied or deleted text after the cursor. u : Undo the last action. Advantages Used for navigation, deleting, copying, pasting, and saving
Starts instantly and uses minimal system resources. Modern Evolution (Vim) : Move cursor left, down, up, right (alternative
To start using vi , you only need to learn a few key commands: vi filename : Open or create a new file. i : Switch to Insert mode to start typing text. : Exit Insert mode and return to Command mode . :w : Save (write) the file. :q : Quit the editor. :wq or ZZ : Save and quit. :q! : Quit without saving changes. 2. Navigation (Command Mode) 0 (zero) : Move to the beginning of the line
Used for advanced commands like saving and quitting. Essential vi Commands
