Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
31 Cards in this Set
- Front
- Back
Undo/Redo |
u /ctrl-r |
|
Getting out |
ZZ/:q!/ZQ |
|
Insert at begin/end of line/cursor |
I/A i/a |
|
Open new line above/below cursor |
O/o |
|
Go to vim's tutorial |
:h vimtutor |
|
select inside "...", (...), [...], Xml tag |
vi" vi( vi[ vit |
|
Indent till line 10, indent current line |
>10G >> |
|
Remove one char, continue insert Remove one line, continue insert |
s S |
|
Find a char, then continue forward/backward |
f{char} ; , |
|
Start macro, then repeat 100 times |
qa{changes}q 100@a |
|
Delete a word or change a word from any position |
daw caw diw ciw |
|
Increase/decrease number by x |
x<C-a> x<C-x> |
|
In Insert mode, paste last yanked |
<C-r>0 <C-o>P |
|
Enter Replace mode |
R gR r gr |
|
Replace every char in a line with - |
yyp Vr- |
|
Command line mode print Current to end, first to end |
:.,$p :1,$p :%p |
|
Print everything btw <html></html> |
:/<html>/+1,/<\/html>/-1p |
|
Copy line 6 to just below current line Copy current line to just below line 6 |
:6t. :t6 |
|
Duplicate current line Copy current line to end of the file |
:t. yyp :t$ |
|
Copy visual selected lines to start of the file Move visual selected lines to end of the file |
:'<,'>t0 :'<,'>m$ |
|
Jump to previous cursor, then jump back |
Ctrl-o Ctrl-i |
|
Repeat a command on visual selection |
:'<,'>normal . :'<,'>normal @q |
|
Insert comment in entire java file |
:%normal i// |
|
Repeat the last Ex command |
@: then @@ |
|
Tab complete Ex command |
<tab> <S-tab> <C-d> |
|
Insert current word at command prompt |
<C-r><C-w> |
|
Set command history limit |
:set history=200 |
|
Bring up command line window with Ex or search history |
q: q/ <CR> |
|
Switch from Command-Line mode to the command-line window |
ctrl-f |
|
Remove empty lines |
:g/^$/d :v/./d |
|
After search by / * or ?, type n, N to continue the search, what about go to first/last match result |
ggn, GN |