Created
July 25, 2017 07:29
-
-
Save aduzsardi/a19315999f7804f243574875f5c6dc97 to your computer and use it in GitHub Desktop.
vim commands
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
VIM Commands | |
:vsp = vertical split | |
:sp = horizontal split | |
:quit - close current split | |
ctrl+w+w - change splited windows | |
:x - save and exit | |
:q - quit | |
:q! - quit without saving changes | |
:wq - write changes and quit | |
:%!xxd | |
:e <file> - edit file | |
o - insert on new line after the current one | |
O - insert on new line before the current one | |
i - insert before the curent caracter | |
I - insert at the begining of the line | |
a - insert after the current caracter | |
A - insert at the end of the line | |
gg - go the begining of file | |
G - go to end of file | |
dd - delete curent line | |
3dd - delete 3 lines starting from current one - works for any other comands with any digit | |
yy - copy line | |
3yy - copy 3 line starting from curent line | |
:! - execute shell command | |
h - go left | |
3h - go left 3 characters including space | |
k - go up | |
3k - go up 3 lines | |
j - go down | |
3j - go down 3 lines | |
l (L) - go right | |
3l - gor right 3 characters including space | |
w - next word - first letter | |
3w - move to third word first letter from current position | |
b - back one word - first letter | |
e - next word - last letter | |
0 - begining of line | |
^ - begining of line | |
$ - end of line | |
) - trebuie sa vad | |
( - trebuie sa vad | |
} - next paragraph | |
{ - prev paragraph | |
% - move between matching brackets {[( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment