Electrical Engineering & Electronics /JCAC Mod 5 VI Modes and Commands

JCAC Mod 5 VI Modes and Commands

Electrical Engineering & Electronics23 CardsCreated about 1 month ago

This flashcard set covers command mode in the vi editor, where typed characters perform actions such as navigating, cutting, copying, or searching text. By default, vi opens in this mode for efficient text manipulation.

command mode

Characters typed perform actions like moving the cursor, cutting or copying text, or searching for a particular text string. vi opens in command mode.

Tap to flip
Space↑↓
←→Navigate
SSpeak
FFocus
1/23

Key Terms

Term
Definition

command mode

Characters typed perform actions like moving the cursor, cutting or copying text, or searching for a particular text string. vi opens in command mo...

Hover to peek or log in to view all

insert mode

Actual text is typed or overwritten.

Hover to peek or log in to view all

i

Insert before cursor (insertion command)

Hover to peek or log in to view all

a

Append after cursor (insertion command)

o (little)

Insert below current line (insertion command)

Hover to peek or log in to view all

O (big)

Insert above current line (insertion command)

Hover to peek or log in to view all

Related Flashcard Decks

Study Tips

  • Press F to enter focus mode for distraction-free studying
  • Review cards regularly to improve retention
  • Try to recall the answer before flipping the card
  • Share this deck with friends to study together
TermDefinition

command mode

Characters typed perform actions like moving the cursor, cutting or copying text, or searching for a particular text string. vi opens in command mode.

insert mode

Actual text is typed or overwritten.

i

Insert before cursor (insertion command)

a

Append after cursor (insertion command)

o (little)

Insert below current line (insertion command)

O (big)

Insert above current line (insertion command)

yy

Copy line into memory (yank-yank) (insertion command)

p

Works with yy to place copied line onto the existing or next line (insertion command)

5p

Places five lines of what was copied, at cursor (insertion command)

x

Delete current character (deletion command)

r

Replace current character (deletion command)

dd

Delete current line (deletion command)

h

Move cursor one place to the left (Navigation Commands)

l (lowercase L)

Move cursor one place to the right (Navigation Commands)

j

Move cursor one place down (Navigation Commands)

k

Move cursor one place up (Navigation Commands)

/

Searches within the document for a string (Navigation Commands)

:set nu

Displays line numbers for each line of text (ex editor command)

:set nonu

Removes line numbers from each line of text (ex editor command)

:w

Writes (saves) latest changes to the file (exit commands)

:q

Quits, leaving vi open in command mode (exit commands)

:q!

Quits vi without saving changes (exit commands)

:wq!

Saves file and any changes, and quits vi (exit commands)