[H-GEN] ae ???

Andrae Muys amuys at bubbles.contal.net.au
Tue Apr 9 21:19:20 EDT 2002


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

On Wed, 10 Apr 2002, David Jericho wrote:

> [ Humbug *General* list - semi-serious discussions about Humbug and     ]
> [ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
> 
> I love the rot13 stuff in vim. g?? rot13's the current line of
> text.[1]
> 

Ahh, I'd forgotten what Rot13 was, so I too get to learn something new
today.  Naturally the command is actually Ng?M where N is a number and M
is a movement command, and N defaults to 1 and repeating the command in
place of M operates on the current line.  Hence g?? (but also 2g?w rot13's
the next 2 words). This is the standard pattern for vi commands so

NyM = yank (ie. copy)
so that
yy = yank current line
2yw = yank next 2 words

NdM = delete (ie. cut)
so that
dd = delete current line
2db = delete previous two words (b moves back)

N>M = indent
so that
>> = indent current line by sw.
>G = indent from the current line to end of document (G moves to end of
file)
 
etc.

> Another of my favourites is the use of "v", to visually highlight text
> to be modified by your next command. When you've got a screen 60 - 70
> lines long, or you want to select some subsection not easily 
> defined by a range, it's quite handy.
> 
Don't forget "V" to highlight whole lines and "Ctrl-V" to highlight
'blocks'.

> [1] EBG13 fxvyyf ner vagrteny gb nal flf nqzvaf arjf tebhc naq znvyvat
> yvfg ernqvat. Bs pbhefr, ge jvyy nyfb qb vg rnfvyl.
Juvpu vf jul V bsgra xrrc n ge bcra ba n fcner grezvany jura ernqvat
arjf/znvy.

--
Andrae Muys            
amuys at shortech.com.au  ...most likely other e-mail programs like Eudora
Senior Engineer        are note designed to enable virus replication.
IDMS International        Found in Virus FAQ at http://www.microsoft.com


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list