Some VI Tips

Some VI Tips
Today, I need to copy some large line from one properties file to another.
I know there is copy one line command shift + y and paste command shift + p.

But how do I use that in 2 different files?

Follow the documents from google,
>vi -o /path/to/file1 /path/to/file2
control + w to shift the different file and use

shift + y to copy and shift + p to paste.

That is it.

references:
http://stackoverflow.com/questions/4620672/copy-and-paste-content-from-one-file-to-another-file-in-vi


猜你喜欢

转载自sillycat.iteye.com/blog/1725917
vi