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

Re: vi



On Apr 14, Rick Macdonald wrote
>Ralph Winslow 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.

Not exactly:

   :% s/129.168.1\./129.168.200/g

   later,

   - rick

-- 
Richard Kilgore                     |  rkilgore@lore.ece.utexas.edu
Electrical & Computer Engineering   |  http://lore.ece.utexas.edu/~rkilgore/
The University of Texas at Austin   |  (512) 471-8011


Reply to: