Linux-vim editor (multi-file editing)

Source: Internet
Author: User
Linux & mdash; vim editor (multi-file editing) we often encounter this problem. we want to copy part of a file to another file. in the linux environment, when using vim, I often open two vim files and copy and paste them with the mouse. However, we can also use vim at the same time...
Linux-vim editor (multi-file editing) we often encounter this problem. we want to copy part of a file to another file. in the linux environment, we use vim
I often open two vim files and copy and paste them with the mouse, but we can also use vim to open two files simultaneously: multi-file operations: n to edit the next file: n. edit the top files: list all files opened by vimi.
Now let's do an exercise: 1. run the "vim test.txt myfile.txt" command to use vim to open two files. Www.2cto.com 2. use ": files" in vim to check the edited file data. press any key to return to the normal mode of vim. 3. input "4yy" in the first line to copy the four rows. 4. in the vim environment, enter ": nsung will be the next edited file, and" myfile.txt ".
5. click Upload p;to paste the copied copy to the upload myfile.txt file.
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.