English 中文(简体)
当改变模式 [重复] 时, 光标会在振动中返回一个字符
原标题:Cursor goes one character back in vim when changing modes [duplicate]

当我们按下 < kbd> Esc 键从 INSERT 模式转到 NORMAL/COMMAND 模式时,光标将一个位置移回。

我不想发生这种情况。 我希望光标即使在我改变为 COMMAND 模式后,它仍然处于位置。

最佳回答

这种行为来自良好的vic行为。为了改变它:

:inoremap <Esc> <Esc>g`^
问题回答

暂无回答




相关问题
Autoupdate VIM Plugins?

Is it possible to update vim plugins automatically?

how to unindent in vim without leaving edit mode?

I m writing a lot of python code recently, and i used the tab-to-space mode in vim. I was just wondering how would i unindent in vim without leaving edit mode for example after i finished if...: block....

Scrolling inside Vim in Mac s Terminal

I ve been googling around trying to figure out if it s possible to use my mouse wheel to scroll while inside Vim in Mac s Terminal, with no luck. It seems as if only X11 or iTerm support this. Before ...

Vim - Deleting XML Comments

How do I delete comments in XML? If the opening and the closing comment tags are on the same line, I use :g/^<!--.*-->$/d to delete the comment. How to delete the comments that are spread ...

Limiting a match in vim to certain filetypes?

I have the following in my .vimrc to highlight lines longer than 80 chars: highlight OverLength ctermbg=red ctermfg=white guibg=#592929 match OverLength /\%81v.*/ This works quite well. However, the ...

Profiling Vim startup time

I’ve got a lot of plugins enabled when using Vim – I have collected plugins over the years. I’m a bit fed up with how long Vim takes to start now, so I’d like to profile its startup and see which of ...

热门标签