vim - Why leaving insert mode moves cursor position to left -


this question has answer here:

when in insert mode in vim:

foo b[a]r

where [] denotes cursor position

and go normal mode, cursor going 1 position left:

foo [b]ar

is there advantage of this?

your initial "state" wrong, in insert mode:

bar[] 

in insert mode, cursor between characters while on character in normal mode. when leave insert mode, cursor has on character: character be? 1 on left of insert mode cursor or 1 on right? how vim supposed decide side one?

one hint command used enter insert mode: leaving insert mode after i leave cursor on left side , a leave on right side. but, point of having cursor on character that's on right of last character typed?

anyway, insert mode inserting text exclusively. i<esc> or a<esc> make no sense , serve no practical purpose. on other hand:

lorem[] dolor sit amet. lorem ipsum[] dolor sit amet. <esc> lorem ipsu[m] dolor sit amet. 

makes lot more sense than:

lorem[] dolor sit amet. lorem ipsum[] dolor sit amet. <esc> lorem ipsum[ ]dolor sit amet. 

doesn't it?


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -