Some setting changed on my vim. In normal mode, I can now click anywhere and my cursor will go there. (This is in normal mode.)

The behavior used to be that if I clicked past the end of the line, the cursor would go to the last character of the line.

I hope I've explained this sufficiently, but is there a way to get the old behavior back?

Thanks!

有帮助吗?

解决方案

You probably set the option virtualedit somewhere. To turn it off for the instance you can use :set virtualedit=. Or to permanently disable it remove it from your vimrc.

其他提示

The feature is call virtual edit. You can disable this with:

:set virtualedit=

See :h 've' for more information.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top