vi operators

Previous Index Next

Operators used in combination with movement operators to operate over useful lumps of text

dDeletee.g. df, - delete to next comma, D delete to end of line, dd delete line
cChangee.g. cw - Change word, C changes everything to end of line, cc change line
yYankCopies to cut buffer, (use p to get back), e.g. y% yank to matching bracket, Y yanks line
!filtere.g. !}fmt<ret> reformats a paragraph
>indente.g.>'a - indent all lines up to the mark
<unindente.g.>'a - unindent all lines up to the mark

The . repeats the last operator. Useful in combination with ; to repeat F/t motion commands

Copyright Dr. David Alan Gilbert 2001. vitalk @ - Hacked together with dsh