How can I copy continue close current into buffer without getting into visual mode?
That is, how to copy N words from cursor?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityHow can I copy continue close current into buffer without getting into visual mode?
That is, how to copy N words from cursor?
You can do y3w
if you are at beginning of a word (so: yank 3 words) or by3w
to get at the beginning of the word first (so: back yank 3 words)
y3e
if at the start of the word, elseviw2ey
? – Christian Brabandt Apr 23 '20 at 15:43