" vimrc, http://sh.kirsle.net/ set nocompatible " use vim defaults set visualbell " flash screen instead of beep set background=dark " my terminal has a black background set tabstop=4 " number of spaces for tab character set shiftwidth=4 " number of spaces to auto-indent set scrolloff=3 " keep 3 lines when scrolling "set autoindent " auto-indent set smartindent " smart auto-indenting (recognizes C-like code) set showmatch " hilite the matching brace when we type the closing brace set nohls " don't highlight search matches set incsearch " incremental search (search while you type) set showcmd " display incomplete commands set ttyfast " smoother changes set autowrite " automatic saving when quitting and switching buffer "set nowrap " don't wrap lines syntax on " syntax highlighting " check perl code with :make autocmd FileType perl set makeprg=perl\ -c\ %\ $* autocmd FileType perl set errorformat=%f:%l%m " make tab in v mode indent code vmap >gv vmap I nmap ^i " syntax highlight pod documentation correctly let perl_include_pod = 1 " syntax color complex things like @{${"foo"}} let perl_extended_vars = 1 " Make sure the syntax is always right, even when in the middle of " a huge javascript inside an html file. autocmd BufEnter * :syntax sync fromstart " change the bash title so the filename is first in the title bar let &titlestring = expand("%:t") . " - vim on " . hostname() if &term == "screen" set t_ts=k set t_fs=\ endif if &term == "screen" || &term == "xterm" set title endif