De: owner-peg@peg.com en nombre de Scott Auge [scottauge@sauge.com] Enviado: miércoles, 12 de abril de 2000 7:36 Para: peg@peg.com Asunto: Re: Vi tutorial - Was Coding practices Marca de seguimiento: Seguimiento Estado de marca: Marcado my .exrc: abbr fie FIELD abbr now NO-WAIT abbr pa PAUSE abbr mes MESSAGE abbr rep REPEAT abbr asd AS DECIMAL abbr ne NEXT abbr el ELSE abbr fo FOR abbr defb DEF BUFFER abbr cre CREATE abbr proc PROCEDURE abbr inp INPUT abbr outp OUTPUT abbr io INPUT-OUTPUT abbr ass ASSIGN abbr cas CASE abbr whi WHILE abbr dop DEF OUTPUT PARAMETER abbr dv DEF VAR abbr dip DEF INPUT PARAMETER abbr nou NO-UNDO abbr li LIKE abbr asc AS CHARACTER abbr asl AS LOGICAL abbr th THEN abbr av AVAILABLE abbr fi FIND abbr fe FOR EACH abbr ret RETURN abbr asi AS INTEGER abbr en END abbr nol NO-LOCK abbr noe NO-ERROR abbr exl EXCLUSIVE-LOCK abbr whe WHERE abbr fir FIRST abbr last LAST abbr thd THEN DO: set showmode set ignorecase makes most of my typing a whole lot faster! Gavin Dickinson wrote: > Mike > > Great stuff, let me digest it ...... I've gotten the "O'Reilly Unix CD > Bookshelf" and find it an invaluable reference (you never remember as much > as you forgot), but have never had the time to really get down to the really > dirty stuff with vi, my mappings are pretty rudimentary (cut down follows), > > " settings / preferences > set showmode > set shiftwidth=4 > set tabstop=4 > set autoindent > " > " Mappings > map \dm imessage view-as alert-box information buttons ok title > "Debug".^[14bw > hhi > map \header ^[:0r /export/home/gpdickin/progress/header.mst > map \sf O{inc/sysfunc.i} /* System function library */ ^[^[ > "/ > " Abbreviattions > abbr dvch def var as char no-undo.^[6bwhhi > abbr dvin def var as int no-undo.^[6bwhhi > abbr dvlg def var as log no-undo.^[6bwhhi > abbr dvdc def var as dec no-undo.^[6bwhhi > > I'd never been able to work out "auto-comment comment macro's", and had > never thought to use the copy buffer, thanks for the tips... > > As to learning regular expressions, I couldn't agree more; and after you > learn them, go and vote for my enhancement request in the 4GL on them ... > today RE's, tommorow P4GL/perl .... _evil_laughter_mode > > > PS to Gavin, I'd be happy to teach a class if you want to fly me down :) > > you have no idea how often I get that request, especially in the northern > winter. > > Gavin Dickinson > > Computer Systems for Business email : < mailto:gdickinson@csbl.com.au> > Level 1, One Park Road Phone : 61-7-3368-3022 > Milton QLD AUSTRALIA 4064 Fax : 61-7-3368-1216