Created
May 2, 2015 12:06
-
-
Save chamoda/51a01b6fdb7351c6cea6 to your computer and use it in GitHub Desktop.
Vi
This file contains 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
Text is always inserting before cursor | |
Delete character -> x | |
Appending text to end of line -> A | |
d [number] motion -> Deleting | |
dw -> Delete until the start of next word (More penatration forward) | |
de -> Delete to end of word | |
d$ -> Delete to end of line | |
d0 or d^ -> Delete to start of line | |
dd -> Delete line | |
u -> Undo | |
U -> Undo whole line | |
CTRL + R -> Redo | |
p -> Put previosly deleted word | |
rx -> Replace character x | |
c [number] motion -> Changing | |
CTRL + g -> show file path, line numbers | |
gg -> Goto the top of the file | |
G-> Go to the botom of th file | |
[line number] G -> Go to line | |
Searching | |
/ [Search parse] -> Search | |
n -> Next | |
N -> Previous | |
CTRL + 0 -> Go ba | |
gg -> go back to start of search | |
% -> Match | |
vimtutor 57% | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment