Shared Flashcard Set

Details

vi commands
List of most basic vi editor commands for Unix
35
Computer Science
Undergraduate 1
05/07/2010

Additional Computer Science Flashcards

 


 

Cards

Term
l
Definition
Move Right One Character
Term
h
Definition
Move Left One Character
Term
j
Definition
Move Down One Line
Term
k
Definition
Move Up One Line
Term
0 (Zero)
Definition
Go to the Beginning of Current Line
Term
$
Definition
Go to End of Current Line
Term
w/W
Definition
Go To Beginning of next Word/BigWord
Term
Bigword
Definition
Defined as a word that ends in a space or a newline ONLY
Term
e/E
Definition
Go to end of next word/bigword
Term
b/B
Definition
go to beginning of previous word/bigword
Term
( / )
Definition
Go to beginning of previous or next sentence
Term
{ / }
Definition
Go to beginning of prev/next paragraph
Term
^B (Ctrl+B)
Definition
Go one page up
Term
^F (Ctrl+F)
Definition
Go one page down
Term
(#)G
Definition
Go to Line (#)
Term
/string
Definition
Find occurrence of string (can be regular expression)
Term
n/N
Definition
repeat search forwards or backwards
Term
:q
Definition
Quit
Term
:q!
Definition
Quit without saving changes
Term
:w filename
Definition
Save as filename
Term
:x
Definition
Save and Quit
Term
:sp filename
Definition
Create a split-frame window with current document and new document named filename
Term
^w^w (Ctrl+w, Ctrl+w)
Definition
Switch between windows in split frame mode
Term
x
Definition
Delete character under cursor
Term
J
Definition
join beginning of previous line to end of current line
Term
r(char)
Definition
replace char under cursor with (char)
Term
dd
Definition
Delete current line
Term
d(#)
Definition
Delete (#) lines
Term
u
Definition
undo
Term
.
Definition
repeat last command
Term
i/a
Definition
Start insert mode, insert before/after current position
Term
I/A
Definition
Start insert mode insert beginning/end of line
Term
o/O
Definition
Start insert mode, insert new line before/after current line
Term
cc
Definition
Start insert mode, replace current line
Term
ESC (Escape)
Definition
Exit Insert mode
Supporting users have an ad free experience!