Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bbn!apple!rutgers!bellcore!texbell!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.misc Subject: Re: vi-like Message-ID: <3355@ficc.uu.net> Date: 9 Mar 89 13:54:15 GMT References: <12406@dartvax.Dartmouth.EDU> <958@starfish.Convergent.COM> <415@corpane.UUCP> Organization: Xenix Support Lines: 45 In article <415@corpane.UUCP>, sparks@corpane.UUCP (John Sparks) writes: > well, dw is not so bad, but let's look at some of the other commands: > dd = delete line (why? why not dl?) Because the syntax is 'd' where '' is a cursor motion command. 'l' means 'forward one character'. 'dl' is delete one character forward. Actually, delete line is '^dj'. 'dd' is a shortcut. > ZZ = end edit and save file (!!!!) End edit and save file is ':wq'. End edit and save if changes is ':x'. 'ZZ' is a shortcut. > $ = end of file '$' is end of line, based on the regular expression syntax. It's a cursor motion command, actually. End of file is the default for the goto-line-number command, 'G'. > A = insert begining at end of line !?!?! Append to the end of line is '$a'. 'A' is a shortcut. > sure there probably are reasons for such cryptic commands. Yes, they're shortcuts for experts. > But that doesn't make it any easier to learn or any more friendly. Which is why it's a good idea to learn the *syntax* of vi, and worry about the shortcuts later. > Personally I like EDT (yes I grew up on DEC). It's easy to use, the keypad > is designed to do most of the editing commands, like del-word, del-line, go > to end of line, go to beginning of line, cut, paste, etc. How about 'go to new file'? -- Peter da Silva, Xenix Support, Ferranti International Controls Corporation. Business: uunet.uu.net!ficc!peter, peter@ficc.uu.net, +1 713 274 5180. Personal: ...!texbell!sugar!peter, peter@sugar.hackercorp.com.