In Vim, I have

a #write after cursor
A #write after end line
I #write at start of line

I want to write before a word, for example

I want to edit this line

My cursor is at the position after this. I want to write before this without deleting this. How?

  • 1
    Type "bi" with your cursor at the end of "this" ... ? – KM. Jul 22 '15 at 14:55
  • bi is good,put as answer i can vote it as correct – elbarna Jul 22 '15 at 14:58

Try this: esc + b + i

  • esc puts you in normal mode
  • b goes to the beginning of the previous word
  • i puts you in insert mode.

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.