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;
51 Cards in this Set
- Front
- Back
How do you scroll down one line in Vi? |
Ctrl-e. E stands for expose. |
|
How do you scroll up one line in vi? |
Ctrl-y |
|
How do you scroll down a half screen in Vi? |
Ctrl-d |
|
How do you scroll up a half screen in Vi? |
Ctrl-u |
|
Hoe do you scroll down a full screen in vi? |
Ctrl-f |
|
How do you scroll up a full screen in vi? |
Ctrl-b |
|
Hoe do you delete from the cursor to the beginning of the line? |
Ctrl-u |
|
How do you move up by one character? |
k or up arrow |
|
How do you move down by one character? |
j or down arrow |
|
How do you move left by one character? |
H or left arrow? |
|
How do you move right by one character? |
L or left arrow |
|
How do you move multiple units? |
Type the number first. Eg. 5k is up five characters. |
|
How do you write changes to a new file in Vi? |
:w newFileName.extension |
|
What is the command to insert before the cursor? |
i |
|
What is the command to insert at the beginning of the line? |
I |
|
What is the command to insert after the cursor? |
a |
|
What is the command to insert at the end of the line? |
A |
|
What is the command to open a new line below the cursor? |
o |
|
What is the command to open a new line above the cursor? |
O |
|
How do you move the cursor to rhe beginning of the previous line? |
- |
|
How do you move the cursor to the beginning of the next line? |
Enter |
|
How do you delete the current character? |
x |
|
How do you delete to the end of the word, excluding the space after? |
de |
|
How do you delete to the beginning of the line? |
d^ |
|
How do you delete to the end of the line? |
d$ or D |
|
How do you move forward one word? |
w |
|
How do you move to the end of the current or next word? |
e |
|
How do you move backward one word? |
b |
|
How do you move forward one sentence? |
) |
|
How do you move backward one sentence? |
( |
|
How do you move forward one paragraph? |
} |
|
How do you move backward one paragraph? |
{ |
|
How do you move to the beginning of the line? |
^ |
|
How do you move to the end of the line? |
$ |
|
How do you move to the first line of the file? |
1G |
|
How do you move to the last line of a file? |
G |
|
How do you move to the nth line of a file? |
nG |
|
How do you find a matching parentheses or brace? |
% |
|
How do you display the current line # and file status? |
Ctrl-g |
|
How do you delete the current character and stay in command mode? |
r |
|
How do you delete the current character and enter insert mode? |
s |
|
How do you delete the current line and stay in insert mode? |
cc |
|
How do you delete the current word and stay in insert mode? |
cw or ce |
|
How do you change to the beginning of the line? |
c^ |
|
How do you change to the end of the line? |
c$ or C |
|
How do you enter overwrite mode? |
R |
|
How do you change cursor case? |
~ |
|
How do you remove the newline character? |
J -joins the next line to current line |
|
How do you save and quit? |
ZZ or :w and :q or :wq |
|
How do you discard changes and revert to last saved version? |
:e! |
|
How do you discard changes and quit vi? |
:q! |