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;
16 Cards in this Set
- Front
- Back
tab a selection
|
> can add numerical argument to front, can also use . afterwards to continue tabbing even though the selection is no longer highlighted.
|
|
swap the current character with the next
|
xp
|
|
swap the current character with the previous
|
Xp
|
|
swap the current line with the next
|
ddp
|
|
swap the current line with the previous
|
ddkkp
|
|
swap the current word with the next
|
dawwP
|
|
Yank all the lines of text in a file
|
:%y+
|
|
Select all
|
shift-v shift-g
|
|
Go to the end of a file
|
shift-g or :$
|
|
How do you write to a read only file while using VIM?
|
:w! sudo tee %
|
|
What is the syntax for search and replace?
|
:range s[ubstitute]/pattern/string/cgiI
|
|
What does :range s/pattern/string/cgiI translate to?
|
For each line in the range replace a match of the pattern with the string where:
c Confirm each substitution g Replace all occurrences in the line (without g - only first). i Ignore case for the pattern. I Don't ignore case for the pattern. |
|
c flag for search and replace
|
confirm each substitution
|
|
g flag for search and replace
|
replace all occurences
|
|
i flag search and replace
|
ignore case
|
|
I flag search and replace
|
do not ignore case
|