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;
99 Cards in this Set
- Front
- Back
h
|
move left (backspace for backup-delete)
|
|
j
|
move down
|
|
k
|
move up
|
|
l
|
move right (spacebar for space)
|
|
$
|
last column on the current line
|
|
0
|
0 (zero)
moves cursor to the first column on the current line. |
|
^
|
move cursor to first nonblank column on the current line
|
|
w
|
move to the beginning of the next word or punctuation mark
|
|
W
|
move past the next space
|
|
b
|
move to the beginning of the previous word or punctuation mark
|
|
B
|
move to the beginning of the previous word, ignores punctuation
|
|
e
|
end of next word or punctuation mark
|
|
E
|
end of next word, ignoring punctuation
|
|
H
|
move cursor to the top of the screen
|
|
M
|
move cursor to the middle of the screen
|
|
L
|
move cursor to the bottom of the screen
|
|
G
|
move to the last line in the file
|
|
xG
|
move to line x
|
|
z+
|
move current line to top of screen
|
|
z
|
move current line to the middle of screen
|
|
z-
|
move current line to the bottom of screen
|
|
^F
|
move forward one screen
|
|
^B
|
move backward one line
|
|
^D
|
move forward one half screen
|
|
^U
|
move backward one half screen
|
|
^R
|
redraw screen ( does not work with VT100 type terminals )
|
|
^L
|
redraw screen ( does not work with Televideo terminals )
|
|
r
|
replace character under cursor with next character typed
|
|
R
|
keep replacing character until [esc] is hit
|
|
i
|
insert before cursor
|
|
a
|
append after cursor
|
|
A
|
append at end of line
|
|
O
|
open line above cursor and enter append mode
|
|
x
|
delete character under cursor
|
|
dd
|
delete line under cursor
|
|
dw
|
delete word under cursor
|
|
db
|
delete word before cursor
|
|
yy
|
(yank)'copies' line which may then be put by
the p(put) command. Precede with a count formultiple lines. |
|
p
|
brings back previous deletion or yank of lines, words, or characters (BEFORE CURSOR)
|
|
P
|
brings back previous deletion or yank of lines, words, or characters (AFTER CURSOR)
|
|
?
|
finds a word going backwards
|
|
/
|
finds a word going forwards
|
|
f
|
finds a character on the line under the cursor going forward
|
|
F
|
finds a character on the line under the cursor going backwards
|
|
t
|
find a character on the current line going forward and stop one character before it
|
|
T
|
find a character on the current line going backward and stop one character before it
|
|
;
|
repeat last f, F, t, T
|
|
. (period)
|
repeat last command
|
|
u
|
undoes last command issued
|
|
U
|
undoes all commands on one line
|
|
xp
|
deletes first character and inserts after second (swap)
|
|
J
|
join current line with the next line
|
|
^G
|
display current line number
|
|
%
|
if at one parenthesis, will jump to its mate
|
|
mx
|
mark current line with character x
NOTE: Marks are internal and not written to the file. |
|
'x
|
find line marked with character x
NOTE: Marks are internal and not written to the file. |
|
:$
|
move to last line of file
|
|
:#
|
move to line #
|
|
:r filename
|
copies (reads) filename after cursor in file currently editing
|
|
:!'cmd'
|
executes 'cmd' as a shell command.
|
|
>>
|
Shifts the current line to the right by one shift width.
|
|
<<
|
Shifts the current line to the left by one shift width.
|
|
CTRL-F, CTRL-B
|
Scroll forward, backward one screen
|
|
CTRL-D, CTRL-U
|
Scroll down, up one-half screen
|
|
CTRL-E, CTRL-Y
|
Show one more line at bottom, top of window
|
|
z RETURN
|
Reposition line with cursor: to top of screen
|
|
z .
|
Reposition line with cursor: to middle of screen
|
|
z –
|
Reposition line with cursor: to bottom of screen
|
|
CTRL-L
|
Redraw screen (without scrolling)
|
|
/pattern
|
Search forward for pattern
|
|
?pattern
|
Search backward for pattern
|
|
n, N
|
Repeat last search in same, opposite direction
|
|
/, ?
|
Repeat previous search forward, backward
|
|
o, O
|
Open new line for text below, above cursor
|
|
I, A
|
Insert text before beginning, after end of line
|
|
i, a
|
Insert text before, after cursor
|
|
yw
|
Yank (copy) word
|
|
ymotion
|
Yank text between the cursor and the target of motion
|
|
ZZ
|
Write (save) and quit file
|
|
:e #
|
Edit alternate file
|
|
gg
|
go to....beginning of file
|
|
match brackets and parenthesis
|
command at colon: set showmatch
|
|
Turn on line numbers
|
command: :set number
to unset: :set nonumber |
|
command for:
when line is wrapped (80-value) |
:set wrapmargine(wm)
|
|
Access the next file for editing
|
:n
|
|
J
|
to join lines
|
|
save the file to newfilename from the command mode
|
:w newfilename
|
|
Include the contents of the specified file at this position in the file that is currently being edited.
|
:r filename
|
|
Write the file to disk with the specified filename.
|
:w filename
|
|
open vi at specific line
|
example:
vi +3 filename |
|
open vi at specific pattern
|
example:
vi +/pattern filename |
|
open vi in READONLY
|
example:
vi -R filename |
|
edit another file (file2) from current file (file1)
|
:e file2
|
|
go to next file (if opened multiple files)
|
:n
|
|
save to different filename
|
:w newFileName
|
|
type a command-line entry without leaving vi
|
:! command
|
|
replace current-line with the result of a command-line
|
!! command
|
|
Move forward and back one paragraph
|
} (forward)
{ (backward) |
|
Move forward and back one sentence
|
) [forward]
( [backward] |