LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Closed Thread
 
LinkBack Search this Thread
Old 10-08-2004, 09:12 PM   #1
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
question about VI/VIM and ssh via putty


i have been using putty a LOT to get into one of my linux workstations and having to edit several .conf or .list files.

my typing is not always the best and i am prone to typos. this can be a problem when i really dont know what im doing half the time.

is there a way to copy from M$ windows into a putty ssh seassion while i have vi/vim up editing a file? i know i can copy out of the ssh into windows as i do that all the time, but how do i go the other way, or can i even go the other way?
 
Old 10-08-2004, 09:38 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
- go to "insert mode" in vi/vim
- then copy the text in e.g. notepd and paste into putty
- press ESC to exit "insert mode"
- save work
 
Old 10-08-2004, 09:42 PM   #3
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
paste with the P command? that is out of 'i' mode...

someone said i could right click and it would paste. for some reason it does work in my RH9 box, but not my debian box. both are running VIM, but i would take it my debian has a more current vs of vim as i installed it via apt-get install vim just the other day, and i know there are no new rpms for RH9 so the vim i have with that is probably a few years old.

does that make a differance?
 
Old 06-24-2009, 02:34 PM   #4
nashah
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
Better late then never...

Enter insert mode in the vim instance that is running within a putty window. Then try holding Shift while you Right-Click to paste (assuming that your putty window is set to "Compromise" mode for selections).
 
Old 06-25-2009, 12:55 AM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
If that's RH9 codename Shrike http://en.wikipedia.org/wiki/Red_Hat_Linux then its extremely old, unsupported and wide open to exploits.
For your own sake and others, use a modern distro eg Fedora 10 or 11, Centos 5.3 (if at all possible).
If its not that one, ignore this.
 
Old 06-25-2009, 01:00 AM   #6
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
Quote:
Originally Posted by nashah View Post
Better late then never...

Enter insert mode in the vim instance that is running within a putty window. Then try holding Shift while you Right-Click to paste (assuming that your putty window is set to "Compromise" mode for selections).
5 years late is plain ridiculous.

Reported for closure.
 
Old 06-25-2009, 07:03 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
nashah;
Please do not dig up old threads like this. Have you checked posting histories to see which--if any--of the original players are still active?

closed
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
putty,ssh etc problems Braveheart1980 Linux - General 10 01-06-2006 12:46 PM
PuTTY/OS X SSH confusion stutterbug Linux - General 1 03-12-2005 04:38 PM
esound over ssh / putty? oldweasel Linux - Networking 6 05-27-2004 02:05 PM
SSH using putty rkemp Linux - Networking 3 03-06-2004 05:04 PM
ssh and using putty from the client ashley75 Linux - General 12 09-11-2003 01:21 PM


All times are GMT -5. The time now is 09:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration