Below is the file '.vimrc' from this revision. You can also download the file.


"
" Grahame's .vimrc file
"

" VIM defaults
set nocompatible
" Allow backspacing over everything in insert mode
set backspace=2
" Automatic indenting
set autoindent
" No word wrapping by default
set textwidth=0
" No backup files
set nobackup
" Read/maintain a .viminfo file
set viminfo='20,\"50
" keep 50 lines of command history
set history=50
" always show the cursor position
set ruler
" set tabsize
"set tabstop=8
" number of spaces for indents
"set shiftwidth=8
" show matching brackets
set showmatch
" use spaces instead of tabs
" set expandtab
" make the menu key do something useful
" completion to matching tag
inoremap [29~ 

" turn on syntax highlighting if available
if has("syntax")
  syntax on
endif

set laststatus=2
set showcmd
set showmatch
set modeline
set modelines=3
set wildmode=full
set wildmenu
set cmdheight=2

" pipe the paragraph through fmt if F pressed
nmap F !}fmt

" http://www.vim.org/tips/tip.php?tip_id=80
augroup JumpCursorOnEdit
  au!
  autocmd BufReadPost *
    \ if expand("<afile>:p:h") !=? $TEMP |
    \   if line("'\"") > 1 && line("'\"") <= line("$") |
    \     let JumpCursorOnEdit_foo = line("'\"") |
    \     let b:doopenfold = 1 |
    \     if (foldlevel(JumpCursorOnEdit_foo) > foldlevel(JumpCursorOnEdit_foo - 1)) |
    \        let JumpCursorOnEdit_foo = JumpCursorOnEdit_foo - 1 |
    \        let b:doopenfold = 2 |
    \     endif |
    \     exe JumpCursorOnEdit_foo |
    \   endif |
    \ endif
  " Need to postpone using "zv" until after reading the modelines.
  autocmd BufWinEnter *
    \ if exists("b:doopenfold") |
    \   exe "normal zv" |
    \   if(b:doopenfold > 1) |
    \       exe  "+".1 |
    \   endif |
    \   unlet b:doopenfold |
    \ endif


if has("gui_running")
	colorscheme torte
	set lines=40
	set columns=140
	set guioptions=agimrLt
	set winminheight=0
	nnoremap <M-k> <C-W>k:resize<CR>
	nnoremap <M-j> <C-W>j:resize<CR>
	set guifont=Monaco:h12
else
	set bg=dark
endif

au BufNewFile,BufRead *.psp                      setf psp
:filetype indent on
set cino=(0
set hlsearch