delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/06/03:43:28

From: eighner AT io DOT com (Lars Eighner)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: vim key commands - not too kool
Date: Sun, 05 Dec 1999 23:36:38 -0600
Organization: Lars Eighner, Author
Lines: 34
Message-ID: <mt0S4AwZqAqC092yn@io.com>
References: <199912060054 DOT TAA04169 AT delorie DOT com> <384B22BF DOT 37134096 AT a DOT crl DOT com>
NNTP-Posting-Host: dillinger.io.com
Mime-Version: 1.0
X-Trace: hiram.io.com 944470530 27201 199.170.88.20 (6 Dec 1999 08:55:30 GMT)
X-Complaints-To: abuse AT io DOT com
NNTP-Posting-Date: 6 Dec 1999 08:55:30 GMT
X-Newsreader: Yarn 0.92 with YES 0.22
X-ISP: Illuminati Online
X-Revision: 1
Originator: eighner AT dillinger-2 DOT io DOT com (Lars Eighner)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In our last episode <384B22BF DOT 37134096 AT a DOT crl DOT com>,
the lovely and talented Weiqi Gao <weiqigao AT a DOT crl DOT com>
broadcast on comp.os.msdos.djgpp:

|Homework: 1.  You typed the following line:
|
|This is f!@#$ stupid,  This is f!@#$ stupod, This is f!@#$ stupid, This
|is f!@#$ stupid,

|And found out that you misspelled the second 'stupid' as 'stupod'.  Now
|the cursor is at the end of the line.  How many key strokes does it take
|to correct the typo?

None, because I am a perfect typist and I never make misteaks.

Okay, I'll bite:

1. shift F2 (search backwards)
2. o 
3. esc (search on o)
4. backspace (rub o)
5. i (insert i)
6. home
7. home
8. down arrow (to end of document)
  (or 6. home, 7. right arrow, 8. down arrow, to return to end
  of second line if that is not the end of document)

-- 
          Lars Eighner  700 Hearn #101 Austin TX 78703 eighner AT io DOT com
      (512) 474-1920 (FAX answers 6th ring) http://www.io.com/%7Eeighner/
              bookstore: http://www.io.com/%7Eeighner/bookstore/
             A truly wise man never plays leapfrog with a unicorn.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019