[PCB_FORUM] Re: Allegro script problem

Newer versions of gvim are modified to allow windows users to use ctrl-v to
paste.  ctrl-q has been mapped to do the normal ctrl-v functions in these
versions (I think version 6.3 or later).

So you would type "%s/[ctrl-q]m//" to remove line feeds.

There is a way to change behavior back to the vi standard, but you loose the
ability to use the mouse to select/move text.  You'll have to look it up on
the web site (www.vim.org) if you want to do it, I don't remember how :)

Just goes to show, "There ain't no such thing as a free lunch"

-- 
George Patrick
Tektronix, Inc.
Central Engineering, PCB Design Group
P.O. Box 500, M/S 39-512
Beaverton, OR 97077-0001
Phone: 503-627-5272         Fax: 503-627-5587
http://www.tektronix.com    http://www.pcb-designer.com

It's my opinion, not Tektronix' 



-----Original Message-----
From: Kevin McCowan [mailto:kmccowan@xxxxxxxxxxxxxx] 
Sent: Monday, November 29, 2004 13:38
To: icu-pcb-forum@xxxxxxxxxxxxx
Subject: [PCB_FORUM] Re: Allegro script problem


Try searching for the ^ or the M with a carriage return
after it "M"-ctrl-V-"return".
There are always new ways to try to find them.
Or just go down a line at a time and delete them.
Slow but effective.
That's the power behind vim.

Kevin

Gary MacIndoe wrote:
> Thanks for the response Kevin.  I type "/" (to search), hold down the
"Ctrl"
> and "v" key, then hit the Enter (Return) key.  It says at the bottom
> "Pattern not found: "[CNTL-V][m]".  Somehow it is like they are not a
"^M",
> but they are not two separate characters in the file.  I'm really stumped.
> 
> Thanks again!
> 
> Gary E. MacIndoe
> PCB Design Engineer
> Advanced Micro Devices, Inc.
> Longmont, Colorado
> 
> 
> 
> 
> -> -----Original Message-----
> -> From: Kevin McCowan [mailto:kmccowan@xxxxxxxxxxxxxx]
> -> Sent: Monday, November 29, 2004 1:46 PM
> -> To: icu-pcb-forum@xxxxxxxxxxxxx
> -> Subject: [PCB_FORUM] Re: Allegro script problem
> ->
> ->
> -> That's because it isn't cntrl-v "m" it's cntrl-v "return".
> -> That will give you a real "return" to search for.
> -> Try it it will amaze and astound you.
> -> Vim, it is what real editing is all about.
> ->
> -> Kevin McCowan
> -> Sr. PCB Designer
> -> TSI Telsys
> ->
> -> Gary MacIndoe wrote:
> -> > Thanks for the response Chris, but I can't seem to get it to
> -> work.  I'm on
> -> > W2K and using Vim as my editor.
> -> >
> -> > It won't accept the "%", but I tried ":s/^M//".  It says
> -> "Pattern not found:
> -> > ^M" even though I'm looking at a bunch of them in the file.  I
> -> used the two
> -> > characters "^" and "M" in the search and replace.  When I try to use
> -> > "[CNTL-V][m]" it doesn't work either.  In the file, it sees
> -> the "^M" as one
> -> > character.
> -> >
> -> > Gary E. MacIndoe
> -> > PCB Design Engineer
> -> > Advanced Micro Devices, Inc.
> -> > Longmont, Colorado
> -> >
> -> >
> -> >
> -> >
> -> > -> -----Original Message-----
> -> > -> From: vince fornier [mailto:kerchunk@xxxxxxxxxx]
> -> > -> Sent: Friday, November 26, 2004 2:00 PM
> -> > -> To: icu-pcb-forum@xxxxxxxxxxxxx
> -> > -> Subject: [PCB_FORUM] Re: Allegro script problem
> -> > ->
> -> > ->
> -> > ->
> -> > -> > Since these scripts are made up of pieces of other
> -> > -> > scripts, and some hand entry, some lines have a "^M"
> -> > -> > at the end of the line, and some don't.  Could this
> -> > -> > cause inconsistent behavior?
> -> > ->
> -> > -> Yuck! If you've got VI installed on your box, you can
> -> > -> zap all those pesky ^M characters with the following:
> -> > ->     %s/^M//
> -> > ->        |
> -> > ->        entered as "[CNTL-V][m]"
> -> > ->
> -> > -> Dunno if this will solve your problem, but it will clean up your
> -> > -> codebase and eliminate one possibility of errors.
> -> > ->
> -> > -> Good Luck,
> -> > ->
> -> > -> Chris Walters
> -> > -> local Cadence guru
> -> > -> (Apple)
> -> > ->
> -> > ->
> -> > ->
> -> > -> _______________________________________________
> -> > -> Join Excite! - http://www.excite.com
> -> > -> The most personalized portal on the Web!
> -> > -> -----------------------------------------------------------
> -> > -> To subscribe/unsubscribe:
> -> > ->       Send a message to icu-pcb-forum-request@xxxxxxxxxxxxx
> -> > ->       with a subject of subscribe or unsubscribe
> -> > ->
> -> > -> To view the archives of this list please login at
> -> > -> http://www.freelists.org. Our list name is icu-pcb-forum
> -> > -> or go to http://www.freelists.org/archives/icu-pcb-forum/
> -> > ->
> -> > -> Problems or Questions:
> -> > ->       Send an email to icu-pcb-forum-admins@xxxxxxxxxxxxx
> -> > ->
> -> > -> Want to post a job listing ?  DON'T DO IT HERE!
> -> > -> Better yet, join our jobs listing forum.
> -> > ->
> -> > -> SUBSCRIBE:  icu-jobs-forum-subscribe@xxxxxxxxxx
> -> > -> POST:       icu-jobs-forum@xxxxxxxxxx
> -> > -> -----------------------------------------------------------
> -> > ->
> -> > ->
> -> >
> -> >
> -> > -----------------------------------------------------------
> -> > To subscribe/unsubscribe:
> -> >  Send a message to icu-pcb-forum-request@xxxxxxxxxxxxx
> -> >  with a subject of subscribe or unsubscribe
> -> >
> -> > To view the archives of this list please login at
> -> > http://www.freelists.org. Our list name is icu-pcb-forum
> -> > or go to http://www.freelists.org/archives/icu-pcb-forum/
> -> >
> -> > Problems or Questions:
> -> >  Send an email to icu-pcb-forum-admins@xxxxxxxxxxxxx
> -> >
> -> > Want to post a job listing ?  DON'T DO IT HERE!
> -> > Better yet, join our jobs listing forum.
> -> >
> -> > SUBSCRIBE:  icu-jobs-forum-subscribe@xxxxxxxxxx
> -> > POST:       icu-jobs-forum@xxxxxxxxxx
> -> > -----------------------------------------------------------
> -> -----------------------------------------------------------
> -> To subscribe/unsubscribe:
> ->    Send a message to icu-pcb-forum-request@xxxxxxxxxxxxx
> ->    with a subject of subscribe or unsubscribe
> ->
> -> To view the archives of this list please login at
> -> http://www.freelists.org. Our list name is icu-pcb-forum
> -> or go to http://www.freelists.org/archives/icu-pcb-forum/
> ->
> -> Problems or Questions:
> ->    Send an email to icu-pcb-forum-admins@xxxxxxxxxxxxx
> ->
> -> Want to post a job listing ?  DON'T DO IT HERE!
> -> Better yet, join our jobs listing forum.
> ->
> -> SUBSCRIBE:  icu-jobs-forum-subscribe@xxxxxxxxxx
> -> POST:       icu-jobs-forum@xxxxxxxxxx
> -> -----------------------------------------------------------
> ->
> ->
> 
> 
> -----------------------------------------------------------
> To subscribe/unsubscribe: 
>       Send a message to icu-pcb-forum-request@xxxxxxxxxxxxx
>       with a subject of subscribe or unsubscribe
> 
> To view the archives of this list please login at
> http://www.freelists.org. Our list name is icu-pcb-forum
> or go to http://www.freelists.org/archives/icu-pcb-forum/
> 
> Problems or Questions:
>       Send an email to icu-pcb-forum-admins@xxxxxxxxxxxxx
> 
> Want to post a job listing ?  DON'T DO IT HERE!  
> Better yet, join our jobs listing forum.
> 
> SUBSCRIBE:  icu-jobs-forum-subscribe@xxxxxxxxxx
> POST:       icu-jobs-forum@xxxxxxxxxx
> -----------------------------------------------------------
-----------------------------------------------------------
To subscribe/unsubscribe: 
        Send a message to icu-pcb-forum-request@xxxxxxxxxxxxx
        with a subject of subscribe or unsubscribe

To view the archives of this list please login at
http://www.freelists.org. Our list name is icu-pcb-forum
or go to http://www.freelists.org/archives/icu-pcb-forum/

Problems or Questions:
        Send an email to icu-pcb-forum-admins@xxxxxxxxxxxxx

Want to post a job listing ?  DON'T DO IT HERE!  
Better yet, join our jobs listing forum.

SUBSCRIBE:  icu-jobs-forum-subscribe@xxxxxxxxxx
POST:       icu-jobs-forum@xxxxxxxxxx
-----------------------------------------------------------
-----------------------------------------------------------
To subscribe/unsubscribe: 
        Send a message to icu-pcb-forum-request@xxxxxxxxxxxxx
        with a subject of subscribe or unsubscribe

To view the archives of this list please login at
http://www.freelists.org. Our list name is icu-pcb-forum
or go to http://www.freelists.org/archives/icu-pcb-forum/

Problems or Questions:
        Send an email to icu-pcb-forum-admins@xxxxxxxxxxxxx

Want to post a job listing ?  DON'T DO IT HERE!  
Better yet, join our jobs listing forum.

SUBSCRIBE:  icu-jobs-forum-subscribe@xxxxxxxxxx
POST:       icu-jobs-forum@xxxxxxxxxx
-----------------------------------------------------------

Other related posts: