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

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;

71 Cards in this Set

  • Front
  • Back
<control-A>
Search forward for the word starting at the cursor position.
[count] <control-B>
Page backwards count screens. Two lines of overlap are maintained, if possible.
[count] <control-D>
Scroll forward count lines. If count is not given, scroll forward the number of lines specified by the last <control-D> or <control-U> command. If this is the first <control-D> command, scroll half the number of lines in the current screen.
[count] <control-E>
Scroll forward count lines, leaving the current line and column as is, if possible.
[count] <control-F>
Page forward count screens. Two lines of overlap are maintained, if possible.
<control-G>
Display the following file information: the file name (as given to vi); whether the file has been modified since it was last written; if the file is readonly; the current line number; the total number of lines in the file; and the current line number as a percentage of the total lines in the file.
[count] <control-H>
[count] h
Move the cursor back count characters in the current line.
[count] <control-J>
[count] <control-N>
[count] j
Move the cursor down count lines without changing the current column.
<control-L>
<control-R>
Repaint the screen.
[count] <control-M>
[count] +
Move the cursor down count lines to the first non-blank character of that line.
[count] <control-P>
[count] k
Move the cursor up count lines, without changing the current column.
<control-T>
Return to the most recent tag context.
[count] <control-U>
Scroll backwards count lines. If count is not given, scroll backwards the number of lines specified by the last <control-D> or <control-U> command. If this is the first <control-U> command, scroll half the number of lines in the current screen.
<control-W>
Switch to the next lower screen in the window, or to the first screen if there are no lower screens in the window.
[count] <control-Y>
Scroll backwards count lines, leaving the current line and column as is, if possible.
<control-Z>
Suspend the current editor session.
<escape>
Execute the ex command being entered, or cancel it if it is only partial.
<control-]>
Push a tag reference onto the tag stack.
<control-^>
Switch to the most recently edited file.
[count] <space>
[count] l
Move the cursor forward count characters without changing the current line.
[count] ! motion shell-argument(s) <carriage-return>
Replace the lines spanned by count and motion with the output (standard output and standard error) of the program named by the shell option, called with a -c flag followed by the shell-argument(s) (bundled into a single argument). Within shell-argument(s), the ‘%’, ‘#’ and ‘!’ characters are expanded to the current file name, the previous current file name, and the command text of the previous ! or :! commands, respectively. The special meaning of ‘%’, ‘#’ and ‘!’ can be overridden by escaping them with a backslash.
[count] # #|+|-
Increment (trailing ‘#’ or ‘+’) or decrement (trailing ‘-’) the number under the cursor by count, starting at the cursor position or at the first non-blank character following it. Numbers with a leading ‘0x’ or ‘0X’ are interpreted as hexadecimal numbers. Numbers with a leading ‘0’ are interpreted as octal numbers unless they contain a non-octal digit. Other numbers may be prefixed with a ‘+’ or ‘-’ sign.
[count] $
Move the cursor to the end of a line. If count is specified, additionally move the cursor down count - 1 lines.
%
Move to the parenthesis, square bracket or curly brace matching the one found at the cursor position or the closest to the right of it.
&
Repeat the previous substitution command on the current line.
'<character>
`<character>
Return to the cursor position marked by the character character, or, if character is ‘'’ or ‘`’, to the position of the cursor before the last of the following commands: <control-A>, <control-T>, <control-]>, %, ', `, (, ), /, ?, G, H, L, [[, ]], {, }. The first form returns to the first non-blank character of the line marked by character. The second form returns to the line and column marked by character.
[count] (
[count] )
Move count sentences backward or forward, respectively. A sentence is an area of text that begins with the first nonblank character following the previous sentence, paragraph, or section boundary and continues until the next period, exclamation mark, or question mark character, followed by any number of closing parentheses, brackets, double or single quote characters, followed by either an end-of-line or two whitespace characters. Groups of empty lines (or lines containing only whitespace characters) are treated as a single sentence.
[count] ,
Reverse find character (i.e. the last F, f, T or t command) count times.
[count] -
Move to the first non-blank character of the previous line, count times.
[count] .
Repeat the last vi command that modified text. count replaces both the count argument of the repeated command and that of the associated motion. If the . command repeats the u command, the change log is rolled forward or backward, depending on the action of the u command.
/RE <carriage-return>
/RE/ [offset] [z] <carriage-return>
?RE <carriage-return>
?RE? [offset] [z] <carriage-return>
N
n
Search forward (‘/’) or backward (‘?’) for a regular expression. n and N repeat the last search in the same or opposite directions, respectively. If RE is empty, the last search regular expression is used. If offset is specified, the cursor is placed offset lines before or after the matched regular expression. If either n or N commands are used as motion components for the ! command, there will be no prompt for the text of the command and the previous ! will be executed. Multiple search patterns may be grouped together by delimiting them with semicolons and zero or more whitespace characters. These patterns are evaluated from left to right with the final cursor position determined by the last search pattern. A z command may be appended to the closed search expressions to reposition the result line.
0
Move to the first character in the current line.
:
Execute an ex command.
[count] ;
Repeat the last character find (i.e. the last F, f, T or t command) count times.
[count] < motion
[count] > motion
Shift count lines left or right, respectively, by an amount of shiftwidth.
@ buffer
Execute a named buffer as vi commands. The buffer may include ex commands too, but they must be expressed as a : command. If buffer is ‘@’ or ‘*’, then the last buffer executed shall be used.
[count] A
Enter input mode, appending the text after the end of the line. If a count argument is given, the characters input are repeated count - 1 times after input mode is exited.
[count] B
Move backwards count bigwords.
[buffer] C
Change text from the current position to the end-of-line. If buffer is specified, “yank” the deleted text into buffer.
[buffer] D
Delete text from the current position to the end-of-line. If buffer is specified, “yank” the deleted text into buffer.
[count] E
Move forward count end-of-bigwords.
[count] F <character>
Search count times backward through the current line for character.
[count] G
Move to line count, or the last line of the file if count is not specified.
[count] H
Move to the screen line count - 1 lines below the top of the screen.
[count] I
Enter input mode, inserting the text at the beginning of the line. If a count argument is given, the characters input are repeated count - 1 more times.
[count] J
Join count lines with the current line. The spacing between two joined lines is set to two whitespace characters if the former ends with a question mark, a period or an exclamation mark. It is set to one whitespace character otherwise.
[count] L
Move to the screen line count - 1 lines above the bottom of the screen.
M
Move to the screen line in the middle of the screen.
[count] O
Enter input mode, appending text in a new line above the current line. If a count argument is given, the characters input are repeated count - 1 more times.
[buffer] P
Insert text from buffer before the current column if buffer is character-oriented or before the current line if it is line-oriented.
Q
Exit vi (or visual) mode and switch to ex mode.
[count] R
Enter input mode, replacing the characters in the current line. If a count argument is given, the characters input are repeated count - 1 more times upon exit from insert mode.
[buffer] [count] S
Substitute count lines. If buffer is specified, “yank” the deleted text into buffer.
[count] T <character>
Search backwards, count times, through the current line for the character after the specified character.
U
Restore the current line to its state before the cursor last moved to it.
[count] W
Move forward count bigwords.
[buffer] [count] X
Delete count characters before the cursor, on the current line. If buffer is specified, “yank” the deleted text into buffer.
[buffer] [count] Y
Copy (or “yank”) count lines into buffer.
ZZ
Write the file and exit vi if there are no more files to edit. Entering two “quit” commands in a row ignores any remaining file to edit.
[count] [[
Back up count section boundaries.
[count] ]]
Move forward count section boundaries.
^
Move to the first non-blank character on the current line.
[count] _
Move down count - 1 lines, to the first non-blank character.
[count] a
Enter input mode, appending the text after the cursor. If a count argument is given, the characters input are repeated count -1 more times.
[count] b
Move backwards count words.
[buffer] [count] c motion
Change the region of text described by count and motion. If buffer is specified, “yank” the changed text into buffer.
[buffer] [count] d motion
Delete the region of text described by count and motion. If buffer is specified, “yank” the deleted text into buffer.
[count] e
Move forward count end-of-words.
[count] f <character>
Search forward, count times, through the rest of the current line for <character>.
[count] i
Enter input mode, inserting the text before the cursor. If a count argument is given, the characters input are repeated count -1 more times.
m <character>
Save the current context (line and column) as <character>.