When we copy and paste two different vim files and use vim for editing, if we open two different vim files, in this case, you cannot use yy and p to copy and paste the two Vim windows. in this case, you need to split the windows and then copy and paste them. The procedure is as follows... when we copy and paste two different vim files and use vim for editing, if we open two different vim files, in this case, you cannot use yy and p to copy and paste the two Vim windows. in this case, you need to split the windows and then copy and paste them. The procedure is as follows: assume we have two files to edit: a and B 1. split: open a first, and then enter sp 2 in the command interface. open: Enter e B to open B 3. switch window: CTRL + w, and enter j or w to switch the window. 4. valid copy: If you want to copy a function to another window, perform the following operations: 1) locate the start: find the function entry or exit "{", enter Shift + V to the visualization mode. 2) locate the position and end with "%". The entire function is selected. 3) copy and paste the function normally.
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.