Solve the problem that Vim cannot copy by right-clicking

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.