New answers tagged

1

It's likely that your .vimrc is getting sourced multiple times. Because it's possible to add multiple autocommands to the same event, you can end up autocommand duplication. This example from the help page explains how to define autocommands in a group to avoid this problem. `:autocmd` adds to the list of autocommands regardless of whether they are already ...


3

The answer is, basically you're going to have either "cursor crawl" to the left when using i then esc,which is Vim's default behavior, or "cursor crawl" to the right with a then esc with this script. The reason for one or the other is that, while in insert mode, the cursor is considered to be "between" two characters (which is ...


Top 50 recent answers are included