Previously, vimrc was changed to solve the problem of syntax brightening. Then, the mouse was suddenly ready to use, and the cursor located at the point.
However, we later found that Ctrl + Shift + C is not available, and the right-click Copy option is also gray.
I searched the internet and found it was a problem with the sentence set mouse =.
This is used to enable the mouse function. A Indicates all modes
Three Modes of VI: Command mode, insert mode, and visual mode. The mouse can be started in various modes:
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 wocould enable the mouse in all four modes:
: Set mouse =
When the mouse is not enabled, the GUI will still use the mouse
Modeless selection. This doesn't move the text cursor.
So set mouse = A in the configuration file starts all the modes, thus shielding the right mouse function.
Here I set it to set mouse = V and use the mouse in visual mode.
However, in this way, other modes cannot be positioned with the mouse, which is a bit uncomfortable. Can't mofeiyu and bear's paw have both of them ??
I found it on the Internet again and found it was true, but I got it again:
No need to change set mouse =
Select with the mouse, Press Y to copy, and click the place you want to paste and paste it with the middle mouse button !!!
It supports file pasting, which is more convenient than using commands.