VIM Q again
Patrick O'Callaghan
pocallaghan at gmail.com
Mon Jun 2 01:15:06 UTC 2008
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
More information about the fedora-list
mailing list