g.delgado
g.delgado

Reputation: 706

Go to beginning of current word and simultanously switch into insert mode

I know that there's I (in normal mode) which goes to the beginning of the line and goes into insert mode.

But does Vim have a built-in/default command to go to the beginning of the word my cursor is on and simultaneously switch into insert mode?

Upvotes: 4

Views: 1302

Answers (1)

Kent
Kent

Reputation: 195059

You can press bi or Bi. If you think the two keystrokes are too long.... you can create a mapping:

nnoremap <F9> bi

Note that the <F9> above is just an example, you can replace it with the key you like.

Upvotes: 7

Related Questions