• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/59

Click to flip

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;

59 Cards in this Set

  • Front
  • Back
:w <Enter>
Save the current document but do not exit vi
:w filename <Enter>
Save the current document as filename
:q <Enter>
Exit vi, as long as no changes were made.
:q! <Enter>
Exit vi, discarding any changes to the current document
:wq <Enter>
Save the current document and exit vi
:x <Enter>
Save the current document and exit vi
ZZ
Save the current document and exit vi
Vi Stands for
Visual Editor
Vi is what kind of editor
Modal
Command Mode
keystrokes are interpreted as commands to edit the file, such as deleting lines or searching for text.
Insert Mode
keystrokes are inserted into the document you are editing.
You begin VI in what mode?
Command
How can you return to command mode?
Esc Key
Press : Put the editor into
Last Line mode.
:set nonumber
turns off line numbers if on.
i
Begin inserting text to the left of the current cursor position
I
Begin inserting text at the beginning of the current line
a
Begin inserting text to the right of the current cursor position
A
Begin inserting text at the end of the current line
o
Insert a blank line after the line that the cursor is on, place the cursor on the new line, and begin inserting text
O
Insert a blank line above the line that the cursor is on, place the cursor on the new line, and begin inserting text
r
Replace one character with the next character entered
R
Enter replace mode; all text entered will overwrite existing text beginning at the current cursor position.
[x]s
Delete [count] characters [into register x] and start insert (s stands for Substitute).
j
Move the cursor down one line
k
Move the cursor up one line
h
Move the cursor one character left
l
Move the cursor one character right
w
Move the cursor one word forward
W
Forward one blank delimited word
b
Move the cursor one word backward
B
Beginning of blank delimited word
e
Move to the end of a word
E
End of blank delimited word
d
Delete
dd
Delete Line
dw
Delete Word
dW
Delete blank delimited word
x
Delete character under cursor
cw
Change word
cW
Change Blank delimited word
cc
Change Line
c$
Change to end of line from current position.
s
substitute characters for new information.
yy
Yank Line
y$
Yank to end of line
p
Paste yanked line below
P
Paste yanked line above
/w
Search forward for w
?w
Search backward for w
n
Repeat search forward
N
Repeat search backward
:s/old/new
Replace next occurrence of old with new
:s/old/new/g
Replace all occurrence of old with new on the line
:%s/old/new/g
Replace all occurrences in the file.
:%s/old/new/gc
Replace all occurrences in the file with confirmation
:g/old/d
Delete all occurrences of old in the file
U
Undo changes on current line
u
Undo last change