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;
20 Cards in this Set
- Front
- Back
Range number
|
absolute address, whatever that number is
|
|
Range .
|
the current line
|
|
Range $
|
the last line in the file
|
|
Range %
|
the whole file
same as 1,$ |
|
Range 't
|
position of mark "t"
|
|
Range /pattern
|
the next line where text "pattern" matches
|
|
Range ?pattern
|
the previous line where text "pattern" matches
|
|
Range \/
|
the next line where the previously used search pattern matches
|
|
Range \?
|
the previous line where the previously used search pattern matches
|
|
Range \&
|
the next line where the previously used substitute pattern matches
|
|
What happens if no range is specified?
|
The command will operate on the current line only.
|
|
How do the special word boundaries come into affect?
|
If you wanted to find the word 'vi' and replace it with 'VIM', you would have to be careful not to replace every word that had 'vi' in it, so you would use word bounadaries
s:\:VIM:g |
|
How would you replace only lines that begin with the word 'vi'
|
s:^vi\>:VIM:
|
|
vim append insert mode to end of line
|
A
|
|
How do you pause vim to return to the shell, and then return?
|
ctrl-z; fg
|
|
Vim command for dumping contents of a url into a text file
|
:r ! links URL_HERE -dump
|
|
Vim command for running bash commands
|
:!COMMAND_HERE
|
|
Vim command for appending lines after a certain line
|
:call append(3, ["foo", "bar"])
|
|
Vim command for toggling line numbers on
|
:set number
|
|
Vim command for toggling relative line numbers on
|
:set relativenumber
|