简体   繁体   中英

How to copy code from Notepadd ++ into a new file in vi editor?

I am creating a new file in vi editor that's gonna have the whole Jquery library code .. How can I copy the whole library from Notepad ++ to vi editor on my laptop ? I'm creating this new file in vi that's gonna be called jquery-1.8.3.js , I just need to copy the whole code into that file from Notepad .. Thanks a bunch !!

用Notepad ++保存文件,用vi加载文件。

You can paste from the clipboard into vi with one of the following:

" + p

" * p

Sometimes you have to use register + , sometimes you have to use register * .

For example: if you're using gVim or MacVim, you use + .

If you're using vim from a shell, you use * .


As others have pointed out, it would be a lot easier to just open the file with vim!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM