Created
December 4, 2015 05:57
-
-
Save darklight721/03c7ee5f07ac7ded16e8 to your computer and use it in GitHub Desktop.
vi quick tips
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
# Motion commands | |
h - move left | |
j - move down | |
k - move up | |
l - move right | |
w - move to next word | |
b - move to beginning of word | |
e - move to end of word | |
^ - move to beginning of current line | |
$ - move to end of current line | |
H - move to top of screen | |
M - move to middle of screen | |
L - move to bottom of screen | |
# Deleting | |
dd - delete current line | |
D - delete to the end of line | |
# Inserting | |
I - insert before line | |
A - append after line | |
o - open a new line after current line | |
O - open a new line before current line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment