set exrc set autoindent set edcompatible set errorbells "set modeline "set nomore set number set remap set report=1 set ruler set scroll=15 set shiftwidth=2 "set showcmd set showmatch set showmode set tabstop=2 set ts=2 set terse set nowrapscan set directory=/tmp " abbr _me David.Capella@foo.bar.edu abbr _meat dave@foo.edu abbr _dwc David W. Capella abbr _bscb Biological Statistics and Computational Biology abbr _dbscb Department of Biological Statistics and Computational Biology abbr _li
map p o
map / Fmap F f>mhGopF abbr _tr abbr phpfunc /////////////////////////////////////////////////////////////// // funcname // purpose: // args : // returns: // globals: /////////////////////////////////////////////////////////////// function func() { } " map OP 60i# map OQ 0i# map ‹ O# dwc0 map Š 0i# map ‰ :r !dateJ map ˆ :!less /home/dave/.exrc " " shell,perl macros " " attribution line: author,date map ,a o# dave@foo.bar.net - :r !date kJ " " insert shell comment line map ,c o60i# " " insert dwc comment line map ,d O# dwc " " edit .exrc map ,e :e $HOME/.exrc " " source .exrc map ,s :so $HOME/.exrc " " read in shell script template map \s 1G:0 r /home/dave/src/skel/skel.sh " " dupe line, comment original map ,n YPi# " " open line above map ,O O " open line below map ,o o " " new script (perl) map ,p 1GO#/usr/bin/perl # :r!ls % kJA - # # dave@foo.edu - :r !date kJo# 60a#Ypo# EOF: :r!ls % kJ1G$ " " new script (sh) map ,t 1GO#/bin/sh # :r!ls % kJA - # # dave@foo.edu - :r !date kJo# 60a#Ypo# EOF: :r!ls % kJ1G$ " " shebang line map ,1 1Gi#/bin/sh # k " " copyright line map ,2 o# copyright (c) 2001,2002 dave w capella All Rights Reserved " " warranty line map ,w o# # May be freely distributed and used as long as this header is retained. # All modifications must be clearly indicated. # # The author makes no promise of technical support. However, bug reports, # suggestions, questions, and comments are welcome. All will be answered # via electronic mail as time allows. # # NO WARRANTY OF ANY KIND EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. # " " comment out this line map ,x I# " " comment, uncomment out a section (uses marks 'a and 'b) map ,z :'a,'b s/^/#/ map ,y :'a,'b s/#// " " " shell function map \f ofuntion mja () { } `ja " " shell if;then;fi construct map \i oif [ mja ] ; then fi `ja " " here document map \< ocat < k2f a " " href map -a 0y$iA0f"p0f"l " " bold map -b 0iA " " new html file map -h 1GO page title
body text " " italic map -i 0iA " " font map -f A " " img map -g ii " " headings map -1 0i
$a
map -2 0i$a
map -3 0i$a
map -4 0i$a
map -5 0i$a
map -6 0i$a
" " html lists map -o okO
map -u o kO
map -dt o kO map -l 0i $a map -n oF.................... " " " new perl subroutine abbr newsub ############################################################ # name : # purpose : # usage : # arguments: # returns : # notes : ############################################################ # sub { } " " map ,- 1GO#!/bin/sh # :r !ls % kJo# dave@goo.bar.net - :r !date kJo#yl59pYpo# eof: :r !ls % kJkO " " PHP helpers " note that these key macros start with the ';' char " " wrap file in php template for web map ;p 1GO Go 2Gf"