Re: vi
On Mon, 14 Apr 1997, Rick Macdonald wrote:
> I beg to differ the emacs case:
>
> M-< ; go to beginning of file
> M-% ; query-replace
> 129.168.1 RET ; search for 192.168.1
> 129.168.200 RET ; replace with 129.168.200
> ! ; repeat for all occurrences
>
> This is fewer keystrokes than vi.
Err... I know I shouldn't get into this, but.....
:1 ; go to top of file
:g/129.168.1/s//129.168.200/g<ret> ; global replace
<esc>:wq
No finger breaking key combo's either. :-)
Jason Costomiris | Finger for PGP 2.6.2 Public Key
jcostom@sjis.com | "There is a fine line between idiocy
My employers like me, but not | and genius. We aim to erase that line"
enough to let me speak for them. | --Unknown
http://www.jasons.org/~jcostom
Reply to:
- References:
- Re: vi
- From: Rick Macdonald <rickm@vsl.com>