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

Re: VIM Q again



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.


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