xshell無法在vim中複製黏貼
阿新 • • 發佈:2019-01-07
ssh xshell 連線在vim中無法用 ctrl+insert 複製黏貼
修改.vimrc
set mouse=c
vi的三種模式:命令模式,插入模式,可視模式.滑鼠可以啟動於各種模式中:
The mouse can be enabled for different modes:
n Normal mode
v Visual mode
i Insert mode
c Command-line mode
h all previous modes when editing a help file
a all previous modes
r for |hit-enter| and |more-prompt| prompt
Normally you would enable the mouse in all four modes with:
:set mouse=a
When the mouse is not enabled, the GUI will still use the mouse for
modeless selection. This doesn't move the text cursor.
所以配置檔案中的set mouse=a啟動了所有模式,這樣就遮蔽了滑鼠右健功能.