Skip to content

Counts

Some Vi commands which do not accept a count now accept one

p

P

Given counts, text will be yanked (in Vi’s sense) that many times. Thus 3 p is the same as p p p.

o

O

Given counts, that many copies of text will be inserted. Thus o a b c ESC will insert 3 lines of ‘abc’ below the current line.

/

?

Given a count n, n-th occurrence will be searched.