• 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/74

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;

74 Cards in this Set

  • Front
  • Back
Move cursor down one line
j
Move cursor up one line
k
Move cursor left one character
h
Move cursor right one character
l
Return to Normal mode
&lt;ESC&gt;<br /><span style="font-style:italic;">(escape)</span>
Exit the editor, discarding any changes
:q!&lt;ENTER&gt;
Exit the editor, but abort if there are unsaved changes
:q&lt;ENTER&gt;
Delete the character under the cursor
x
Insert text before the cursor
i
Append text at the end of the current line
A
Save the current file and exit
:wq&lt;ENTER&gt;
Append text after the cursor
a
Insert at beginning of line (after whitespace)
I
Invert case of current character
~
Go down half a screen
&lt;C-D&gt;
Go up half a screen
&lt;C-U&gt;
Go forward a screen
&lt;C-F&gt;
Go back a screen
&lt;C-B&gt;
Go to end of text
G
Go to previous word
b
Go to next word
w
Go to end of (next) word
e<br />(goes to end of next word if already at end of word)
Go to end of previous word
ge
Go to first non-whitespace character of current line
^
Go to last character of current line
$
Go to line <span style="font-style:italic;">n</span>
<span style="font-style:italic;">n</span>G <span style="font-style:italic;">n</span>gg
Go to first line of file
1G gg
Go to last line of file
G
Undo last command
u
Restore last changed line
U
Redo last undo
&lt;C-R&gt;
Move cursor left to start of next space-separated word
B
Move cursor right to start of next space-separated word
W
Move cursor left to end of next space-separated word
gE
Move cursor right to end of next space-separated word
E
Move cursor to next occurrence of character <span style="font-style:italic;">c</span>
f<span style="font-style:italic;">c</span>
Move cursor to previous occurrence of character <span style="font-style:italic;">c</span>
F<span style="font-style:italic;">c</span>
Move cursor to character before next occurrence of <span style="font-style:italic;">c</span>
t<span style="font-style:italic;">c</span>
Move cursor to character after previous occurrence of <span style="font-style:italic;">c</span>
T<span style="font-style:italic;">c</span>
Delete a word
dw
Delete to the end of the line
d$
Delete text indicated by motion <span style="font-style:italic;">m</span>
d<span style="font-style:italic;">m</span><br /><span style="font-style:italic;">(example: d$ means delete to end of line)</span>
Delete <span style="font-style:italic;">n</span> words
<span style="font-style:italic;">n</span>dw
Move to the start of the line (before whitespace)
0
Delete a line
dd
Undo the last command
u<br /><span style="font-style:italic;">(may be used repeatedly to undo multiple commands)</span>
Redo the last undone command
&lt;C-R&gt;<br /><span style="font-style:italic;">(Control-R)</span>
Put previously deleted (or copied) text after the cursor
p
Put previously deleted text before the cursor
P
Replace the character under the cursor with character <span style="font-style:italic;">x</span>
r<span style="font-style:italic;">x</span>
Change to the end of the current word
ce
Change to the end of the current line
c$
See location in file and file status
&lt;C-G&gt;<br /><span style="font-style:italic;">(Control-G)</span>
Search for phrase
/<span style="font-style:italic;">phrase</span>&lt;ENTER&gt;
Substitute first occurrence of <span style="font-style:italic;">phrase1</span> with <span style="font-style:italic;">phrase2</span> on the current line
:s/<span style="font-style:italic;">phrase1</span>/<span style="font-style:italic;">phrase2</span>&lt;ENTER&gt;
Substitute all occurrences of <span style="font-style:italic;">phrase1</span> with <span style="font-style:italic;">phrase2</span> on the current line
:s/<span style="font-style:italic;">phrase1</span>/<span style="font-style:italic;">phrase2</span>/g&lt;ENTER&gt;<br /><span style="font-style:italic;">(The /g at the end means "global")</span>
Substitute all occurrences of <span style="font-style:italic;">phrase1</span> with <span style="font-style:italic;">phrase2</span> in the entire file
:%s/<span style="font-style:italic;">phrase1</span>/<span style="font-style:italic;">phrase2</span>/g<br /><span style="font-style:italic;">(% means execute the command for the entire file)</span>
Execute external command <span style="font-style:italic;">cmd</span>
:!<span style="font-style:italic;">cmd</span>
Save the current file to file named <span style="font-style:italic;">filename</span>
:w <span style="font-style:italic;">filename</span>
Save the visually selected area to file named <span style="font-style:italic;">filename</span>
:w <span style="font-style:italic;">filename</span><br /><span style=" font-style:italic;">(vim will automatically add '&lt;,'&gt; to the beginning of your command for the visually selected area)</span>
Open a new line below the cursor's line and enter Insert mode
o
Open a new line above the cursor's line and enter Insert mode
O <span style="font-style:italic;">(capital o)</span>
Enter Replace mode, to repeatedly replace the character under the cursor and advance
R
Yank (copy) the selected text
y
Yank (copy) the current line
yy <span style="font-style:italic;">or</span> Y
Yank (copy) from cursor through motion <span style="font-style:italic;">m</span>
y<span style="font-style:italic;">m</span>
Put (paste) copied text after the cursor
p
Put (paste) copied text before the cursor
P
Ignore case in searches
:set ic <span style="font-style:italic;">(or :set ignorecase)</span>
Show partial matches while typing search phrase
:set is <span style="font-style:italic;">(or :set incsearch)</span>
Highlight all matching phrases for the last search
:set hls <span style="font-style:italic;">(or :set hlsearch)</span>
Get help on command <span style="font-style:italic;">cmd</span>
:help <span style="font-style:italic;">cmd</span>
Jump to the next window
&lt;C-W&gt;&lt;C-W&gt;
Jump to the next window right, left, up, or down
&lt;C-W&gt;&lt;C-<span style="font-style:italic;">K</span>&gt; <span style="font-style:italic;">(where </span>K<span style="font-style:italic;"> is a cursor movement key h, j, k, l)</span>