Solved

vi vim paste function

Posted on 2013-01-07
3
492 Views
Last Modified: 2013-01-12
Hello,
I searched the internet, but I will continue to search.  Meanwhile allow me to ask;
When using vi or vim, and capturing/cutting text, which now that text is in the buffer.  How can I paste that text into the vi/vim text file "WITHOUT USING THE RIGHT BUTTON OF THE MOUSE."  I would like to keep my fingers on the keyboard, apply some command like lp, or ap (which these two do not work), and paste the text into the vi text.
thanks
0
Comment
Question by:chima
3 Comments
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 350 total points
ID: 38753144
You should put in the paste mode
Esc
:se paste

Then you can use shift + insert instead of right mouse click
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 150 total points
ID: 38753400
while in command mode (press ESC key) you can move the cursor to the line where you want to paste before or after, then press p or P to paste after or before
0
 

Author Closing Comment

by:chima
ID: 38771116
Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now