When I was studying vim with vimtutor, I came to this section, as shown in the following figure. I found that I pressed the E key not to jump to the end of the word, but after the penultimate letter of the word. This is different from what it said above?
Ps: After pressing I to enter the insertion mode, pressing esc will jump forward another letter. But the average person wouldn’t use it that way, and I just happened to test it. However, pressing E on the top does not reach the end of the word, which worries me. Is this the case? (vim under ubuntu of my test colleague is the same as mine)
VIM – Vi IMproved 7.4 (2013 Aug 10, compiled Nov 19 2014 14:10:23)
Includes patch: 1-525
Giant version with GTK2 graphical interface.
eKey performance should be right, the reason for this situation is estimated to be the appearance of your cursor ~
Normally, the cursor will highlight the last word:
Not only is your cursor a vertical line in normal mode. But the position should be correct, because press at this timeiWhen entering edit mode, the cursor will be inserted before the last letter.
The performance in ps is also normal, if you are not used to it, you can use it.aReplacei, so that the cursor will be inserted after the current letter, pressescWill return to its original position.
The main topic is quite true.
We know that vim has many modes, in which the cursor is located on a character in normal mode and on the left or right of a character in insert mode. When switching modes, the cursor will definitely move. When going from normal to insert, theiCan be moved to the left,aMove to the right. When insert goes to normal, it basically only passes throughescFor simplicity, you can only choose between moving left and right.
Generally speaking, when you switch to normal mode most often, when you have finished entering a paragraph of text, the cursor moves to the left at the end of the line, which is obviously more reasonable.
If you don’t like this, you can do it at
inoremap <silent> <Esc> <C-O>:stopinsert<CR>