Copy/paste from one file to another with vim

Source: Internet
Author: User

This application scenario:
Because the default bash is not used now, it is zsh, so the errorzsh: command not found: adbis due to the update. Bash_profile but ZSHRC there is no way to increase the ADB. So we need to copy from the former to the latter.

  1. Open with Vim.bash_profile, the cursor moves to the first line that you want to copy, and then press"*yy(This is a copy line, if you want to copy three lines, change to 3yy) ("*ddRepresents cut)
  2. With the:e .zshrcopen file.
  3. Paste the first copy to the file opened in the second step"*P(uppercase p means paste before the cursor, lowercase p means paste after the cursor)
  4. Exit save.source .zshrc

Copy/paste from one file to another with vim

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.