Shared Flashcard Set

Details

vi Text Editor Commands/Usage
Various commands and basic usage of the vi Text editor found in Unix-based systems
12
Computer Science
Professional
01/06/2014

Additional Computer Science Flashcards

 


 

Cards

Term
There are two modes in vi.  What are they?
Definition

Text Insertion Mode

 

Command Mode

Term
How do you return to command mode when in insertion mode?
Definition
Press the ESC key.
Term
What's the command to save changes and exit?
Definition
:x
Term
What's the command to exit as long as no changes have been made?
Definition
:q
Term
What's the command to save changes (if changes have been made)
Definition
ZZ
Term
What's the command to exit and ignore any changes?
Definition
:q!
Term
What's the command to insert text before the cursor?
Definition
i
Term
What's the command to insert text before the line?
Definition
I
Term
What's the command to append text after the cursor?
Definition
a
Term
What's the command to append text after the current line?
Definition
A
Term
What's the command to insert a new line after the current one?
Definition
o (lower case)
Term
What's the command to open a new line before the current one?
Definition
O (upper case)
Supporting users have an ad free experience!