Re: VIM Q again

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

 



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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux