" vimrc - parts from posting/email from: " Bernie Cosell " loo@mister-curious.sw.mcc.com (Joel Loo) " with stuff from the vim configuration suggestions, placed first " " Normally we use vim-extensions. If you want true vi-compatibility " remove change the following statements set nocompatible " Use Vim defaults instead of 100% vi compatibility set backspace=2 " more powerful backspacing " Don't write backup file if vim is being called by "crontab -e" au BufWrite /private/tmp/crontab.* set nowritebackup " Don't write backup file if vim is being called by "chpass" au BufWrite /private/etc/pw.* set nowritebackup " enable color (have set TERM=xterm-color in .bashrc, etc.), then syntax enable set background=dark syntax off "uncomment one of below to get decent color even if syntax off " color morning "bg=white, fg=blue, clear/max hi, cursor blocks char " color shine "bg=white, fg=black, clear/max hi, cursor blocks char " color desert "bg=std blue, fg=cyan, clear/max hi " color pablo "bg=std blue, fg=white, mostly clear/med hi, ctrl=bad " color murphy "bg=black, fg=red, clear/max hi color evening "bg=black, fg=cyan, clear/max hi set magic set wrapmargin=3 set ai set showmatch set showmode set optimize set directory=/Users/jar/tmp " ncr x terminal stuff: insert pageup pagedown; make same as iris-ansi map [2~ i map [6~  map [5~  map! [2~  map! [6~  map! [5~  " format paragraph map q {!}fmt " filter marked region through indent - no options - hmmm map  mt!`mindent -st 2>/dev/null " " Insert-mode conveniences: " previous-line map!  ka " next-line map!  ja " backward-character map!  i " forward-character map!  la " beginning-of-line map!  I " end-of-line map!  A " open-next-line map!  o " screen redraw map!  a " Keep ^E and ^B same in command and input modes " map  A " map  I " insert space before cursor in command mode map  i  l " " CUT-PASTE MACROS " mm | Mark the beginning of region " W | Copy (to scratch) from marked line to current line map W mt`m"dy`t " ^W | Cut (to scratch) from marked line to current line map  mt`m"dd`t " Y | Yank (or paste) from scratch area map Y "dPmm " " COMMENTING " V | 'C'-comment the current line map V :s$.*$/* & */$ + " v | 'C'-uncomment the current line map v :s$/\* \(.*\) \*/$\1$ + " K | Comment with '#' from marked line (good for sh etc.) map K :'m,.s/.*/#&/ " ^K | Uncomment lines of '#' from mark line (") map :'m,.s/#\(.*\)/\1/ abbr cmt /* */hhi abbr dcm /* * */kA