Vim
A lightweight text editor featuring modal operation, unlocking true productivity with overwhelming editing speed once mastered
Shortcuts that streamline basic operations like saving, opening, and quitting for smooth file management
:+w
Save file
Saves the current file.
๐ก Hint: write
๐ฏ Save current file to securely preserve work
:+w+q
Save and quit
Saves file and quits Vim.
๐ก Hint: write quit
๐ฏ Save and quit Vim to safely complete work
Z+Z
Save and quit (ZZ)
Saves file and quits Vim (no command mode needed).
๐ก Hint: ZZ for quick exit
๐ฏ Quickly save and quit with ZZ for efficient work completion
:+q
Quit
Quits Vim (fails if there are unsaved changes).
๐ก Hint: quit
๐ฏ Quit Vim after confirming changes to prevent unintended modifications
:+q+!
Force quit
Quits Vim discarding changes.
๐ก Hint: quit + ! to force
๐ฏ Force quit discarding changes to return to pre-edit state
:+e+ +ใใกใคใซๅ
Edit file
Opens specified file.
๐ก Hint: edit
๐ฏ Open another file to efficiently edit multiple files
:+s+p+l+i+t
Split horizontal
Splits window horizontally.
๐ก Hint: split
๐ฏ Split screen horizontally to display and edit multiple files simultaneously
:+v+s+p+l+i+t
Split vertical
Splits window vertically.
๐ก Hint: vertical split
๐ฏ Split screen vertically to maximize parallel work efficiency
Ctrl+w+h
Window left
Moves to left window.
๐ก Hint: window + h (left)
๐ฏ Move to left window to efficiently navigate between split screens