VI Tutorial - Lesson 11 - Operators and Scopes

Delete Operator & ScopeResulting Action
dwdelete word forward
dbdelete word backward
d$delete from cursor to end of line (same as D)
d0delete from cursor to beginning of line
dLdelete from current line to end of screen
dGdelete from current line to end of file
d)delete complete sentence forward
d(delete complete sentence backwards
dddelete complete line

Change Operator & ScopeResulting Action
cwchange word forward
cbchange word backward
c$change from cursor to end of line (same as C)
c0change from cursor to beginning of line
cLchange from current line to end of screen
cGchange from current line to end of file
c)change from cursor to sentence start
c(change from cursor to sentence end
ccchange complete line

Yank Operator & ScopeResulting Action
ywyank word forward
ybyank word backward
y$yank from cursor to end of line (same as Y)
y0yank from cursor to beginning of line
yLyank from current line to end of screen
yGyank from current line to end of file
y)yank from cursor to start of sentence
y(yank from cursor to end of sentence
yyyank complete line

previous | MENU