Re: VIM Q again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday 01 June 2008, Patrick O'Callaghan wrote:
>On Sun, 2008-06-01 at 20:19 -0400, Gene Heskett wrote:
>> Greetings;
>>
>> I'm in the process is adding comments so I can figure out what some
>> disassembled code that is about 25 years old is doing.  We've found a
>> couple of buglets we would like to fix in the last few years & we're tired
>> of working around them with a disk editor.
>>
>> However adding the missing comments is severely hampered by vim's apparent
>> inability to do a global search and replace with the example shown in
>> the ":help change" portion of the online help.  That BTW isn't working
>> either by the usual put the cursor on the help item and hitting ctrl- as
>> the help says it should.  The "ctrl-" is ignored.
>>
>> So what am I doing wrong when in the command mode, I type
>> /s/L1BAE/isspace/&g, or :s/L1BAE/isspace/&g
>>
>> either syntax reports a spurious string error or similar squawk.  And of
>> course does nothing.  I even tried the :promptrepl trick but it just puts
>> the curser on the next line.
>>
>> Is my vim busted or suffering from bit rot?  F8 install, uptodate
>> yesterday.
>
>If all you want is to change every "L1BAE" in the file to a "isspace"
>
>you can do it with sed(1), but sticking with vi(1):
>:g/L1BAE/s//isspace/g
>
>poc

And that worked just fine with my installed vim, thank you very much, poc.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
At the foot of the mountain, thunder:
The image of Providing Nourishment.
Thus the superior man is careful of his words
And temperate in eating and drinking.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux