0

How can I copy continue close current into buffer without getting into visual mode?

enter image description here

That is, how to copy N words from cursor?

  • 1
    Ok I just learned about v3w. That works.. – zundarz Apr 23 at 15:36
  • 2
    y3e if at the start of the word, else viw2ey? – Christian Brabandt Apr 23 at 15:43
3

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)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.