-se shm=aot
-se laststatus=2
-syn enable
-if has("gui_running")
- se guifont=Bitstream\ Vera\ Sans\ Mono\ 12
- colo darkblue
-endif
-highlight StatusLine guifg=white guibg=blue ctermbg=white ctermfg=blue
-if has("win32")
- se guifont=Bitstream_Vera_Sans_Mono:h10:cANSI
-endif
-:autocmd!
+
+" Look for ctags in home directory first.
+se tags=~/.tags,./tags,tags
+
+" Use - and = to create underlines.
+map - yyp:s/./-/g<RETURN>:let @/=''<RETURN>:<RETURN>
+map = yyp:s/./=/g<RETURN>:let @/=''<RETURN>:<RETURN>
+
+""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" Handle options only available in Vim 5 and above.
+""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+if version >= "500"
+version 5.0
+
+" Vim 5 hardcodes the size of numbers column to 8.
+let numberwidth=8
+
+" Save sessions in UNIX format with / as file separator. This is
+" cross-platoform.
+se ssop+=unix,slash
+
+" Nuke any pre-existing autocommands.
+autocmd!
+
+" Save the current window width so we can restore it when we quit.
+let oldcols=&columns
+
+" More GUI options. Add icon, tearoffs and toolbar.
+se go+=itT
+
+" Allow dynamic window resize even if we aren't in an xterm.
+se t_WS=\e[8;%p1%d;%p2%dt
+
+" Highlight search results.
+se hlsearch
+
+" Syntax highlighting.
+syn on
+
+" Use a discernably different colour to highlight the cursor which shows
+" matching brackets. Our regular cursor is green so use blue instead of cyan.
+hi MatchParen ctermbg=blue
+
+" Catch typos.
+command! W :w
+command! Wq :wq
+command! Wqa :wqa