โ† Back to Shortcut Collections
Vim

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