Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd August 2011, 04:50 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
F14 and ftp,vi

Hello,
When I try to cut/paste in vi from one window to another ( using Putty )
# is place in front of each line. I do not know is this a vi option I can turn off or not.
google did not help me.

EXAMPLE:
#!/usr/bin/perl
################################################## ##############################
## -----------------------------------------------------------------------------
## # / Date / Person / Description
## 1 / 07/25/11 / Brian M. Cross / Added routing table, removed old files
## 2 / 08/01/11 / Brian M. Cross / Changed host info dir, and disable the
## / removal of old host info files
################################################## ##############################
## Global Variables and Arrays
################################################## ##############################
#
#$asterix = "************************************************* ***********";
#$break = "--";
#$dash = "-";
#$date = `date`;
#$etc1 = "/etc";
#$etc2 = "/etc/";
#$hostname = `hostname`;
#$sep = "----------";
#$temp = "/var/tmp/tools";
#$tmp = "/var/tmp/tools/";
#
Reply With Quote
  #2  
Old 2nd August 2011, 05:03 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,150
linuxfedorafirefox
Re: F14 and ftp,vi

The easiest way is to put a blank line before the insert.

This is a language sensitive editor feature that duplicates the state of the line preceding the insert.
Reply With Quote
  #3  
Old 2nd August 2011, 05:32 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
Re: F14 and ftp,vi

thanks,

But did not work for me
In vi I have tried a , I and o insert a line with all , still adds # to use line when I cut/paste
Reply With Quote
  #4  
Old 2nd August 2011, 09:08 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,150
linuxfedorafirefox
Re: F14 and ftp,vi

Works fine for me.

Using "O" for a new line (between comments) will put a #, but it is easy to delete.

Then paste.
Reply With Quote
Reply

Tags
f14, ftp

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump


Current GMT-time: 23:14 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat