Paste the mouse in vim-how to avoid typographical confusion

Source: Internet
Author: User

This problem has plagued me for a long time.

During large-scale copy and paste with the mouse, due to the existence of the comment lines in the Code, the indentation will become longer and longer, and the entire back is messy and all are commented out.

If there are two C files, I will useSplit split screen in VIM, This method is good.

However, if you copy from a web page and paste it again, the above method will be ineffective. The stupid method is,Using other text editors in linux such as Kate, paste them directlyAnd then cp the document to the working directory.

The following describes a command in VIM to avoid the above tedious operations.

Just one command: Set Paste

Press I to enter the insert mode and paste it with the mouse.

See here: http://www.worldhello.net/2010/12/08/2190.html

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.