From a Windows 10 Anniversary Update client ...
i
to change into Insert mode Unfortunately, when I right-click in the PuTTY session, rather than pasting clipboard contents, what's actually happening is that Vim is going from INSERT
mode to (insert) VISUAL
mode. I don't think I've ever seen anything like this before.
Does anyone know why this is happening, and how I can paste my Windows client clipboard into the SSH / Vim session?
It appears that this issue is due to a change in defaults for VIM version 8.0 and higher.
Previous versions had mouse mode turned off ( mouse=
), but the new default is mouse mode turned on ( mouse=a
).
There are 3 ways to deal with this situation:
:set mouse=
and <enter> vim -C {filename}
) and it will revert back to the Vi "compatible" settings for that session Of course you can always add set mouse=
to your .vimrc file to make it permanent. But that doesn't work for me because I hop around on too many different systems.
我通过关闭鼠标模式解决了这个问题。
:set mouse=
I faced the same problem
It worked fine
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.