Last active
August 11, 2017 14:15
-
-
Save hamidreza-s/10571281 to your computer and use it in GitHub Desktop.
Vim cheat sheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in command mode | |
Ctrl+E (move screen up) | |
Ctrl+Y (move screen down) | |
H (move cursor to head of screen) | |
M (move cursor to middle of screen) | |
L (move cursor to end of screen) | |
gg (move cursor to head of file) | |
G (move cursor to end of file) | |
# example | |
gg -> yG (yank whole file's text to vim clipboard) | |
gg -> "+yG (yank whole file's text to OS clipboard) | |
gg -> dG (delete whole file's text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment