Ralph Winslow wrote: > > emacs: > > > > M-< ; go to beginning of file > > C-x ( ; start recording kbd macro > > C-s 129.168.1 RET ; search for 192.168.1 > > M-b M-b M-b ; go back three words > > M-d M-d M-d ; delete three words > > 129.168.200 ; insert new string > > C-x ) ; end kbd macro > > C-x e ; repeat > > C-x e ; repeat > > C-x e ; repeat
I could care less what editor anybody (not in my patroll ;-) uses. I'm sending this for the benefit of the emacs user who wrote the above. 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. If you don't want every occurrence changed, then you press one key to perform or another to skip each one as you see it. -- ...RickM...