Reputation: 11
1234
5678
In insert mode,if I want to move cursor from 5 to 4
please tell me what should I do?
I dont want to change to normal mode and press k$
Is there some way to do it in Insert mode?
Something like using <-
key to move it.
If I want to use <-
to do this ,what should I do?
Upvotes: 0
Views: 147
Reputation: 6255
Another thing to remember is that Ctrl-O puts you in normal mode for one command only. So Ctrl-O k Ctrl-O $ would put you at the tail of the previous line, still in insert mode.
Upvotes: 2
Reputation: 365
You can use the Ctrl key with the Arrow keys :
Ctrl+Arrow rightArrow up
Upvotes: 1
Reputation: 59287
The usual Vim way would be indeed to switch back to normal mode. You can then do
kA
, bA
, for example. If you want your arrow keys to work across lines, have
a look in the whichwrap
option, :h whichwrap
. For the arrows to work in
insert mode, try use this (you can add in .vimrc):
set whichwrap+=[,]
It is usual to make the arrows work in normal and visual too:
set ww+=<,>,[,]
Upvotes: 2