Pasting text in VI editor from a different editor

beginners, text, vi


Thread Tools Search this Thread
# 1  
Old 09-10-2008
Pasting text in VI editor from a different editor


I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question.

How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'?
As i see, p & P options does work only within 'vi'.
# 2  
Old 09-10-2008
If you are using an X-Windows environment of some sort then middle-click usually pastes into a terminal session.
# 3  
Old 09-10-2008
Sometimes shift-insert will do it too.
# 4  
Old 09-10-2008
Yes, but Middle-click or shift-insert isn't working within 'vi' editor.
It works in gedit.
# 5  
Old 09-10-2008
Are you in X-Windows? Or connected via SSH/PuTTY or similar? I'm not familiar with gedit... is it a GUI application? In other words... when you copy something to the clipboard from gedit... which clipboard is it going to?
# 6  
Old 09-10-2008
am not sure of what u're asking. Gedit is a GUI based editor(like ur notepad in windows)
# 7  
Old 09-10-2008
Okay, so I take it you are not in Windows... are you using VNC or something to connect to a remote server? Or are you directly in front of a PC running Linux with KDE or Gnome or something? And if that is the case, how are you running vi, in an xterm window? Or konsole? Maybe a screenshot would tell a thousand words... :-)

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Default text editor spuzh Solaris 13 11-05-2013 05:03 AM
need to wait until Text Editor is closed dd_u_dev1982 Shell Programming and Scripting 1 08-09-2011 02:19 PM
Any better text editor for unix? animesharma UNIX for Dummies Questions & Answers 4 08-05-2011 12:17 PM
C++ IDE and/or Text editor with split screen cokedude UNIX and Linux Applications 5 10-21-2010 06:39 PM
need a good text editor for windows tlarkin Windows & DOS: Issues & Discussions 5 03-17-2010 05:49 PM
Text editor in C julie_s Programming 2 09-24-2009 09:31 AM
how to add text after a particular line on vi editor manoj_dahiya22 Shell Programming and Scripting 9 03-04-2009 06:08 PM
Epic Editor was not able to obtain a license for your use. Feature Epic Editor :Licen durgaprasadr13 Solaris 1 10-13-2008 08:39 AM
set EDITOR=vi -> default editor not setting for cron tab aarora_98 Shell Programming and Scripting 6 09-13-2008 03:01 AM
How to load text editor PICO atomicsushi UNIX for Dummies Questions & Answers 2 04-03-2004 06:13 PM
Text editor ASpin UNIX for Dummies Questions & Answers 3 12-06-2002 12:35 AM
pico text editor popac UNIX for Dummies Questions & Answers 5 10-27-2002 06:41 AM
Text editor on Sun OS 3.0 malic UNIX for Dummies Questions & Answers 2 11-20-2001 07:01 PM
VI or text editor Chrisg411 UNIX for Dummies Questions & Answers 2 11-09-2001 11:11 AM