colorscheme blue
filetype plugin indent on
syntax on
" Highlight the line the cursor is on
set cursorline
highlight CursorLine term=inverse cterm=bold,inverse ctermfg=0
" Don't try to make vi style work
set nocompatible
" Show numbers, make room for up to 99999 lines
set number
set numberwidth=6
" Always show the status line
set laststatus=2
" Look at the statusline to see what this does
set statusline=%1*%m%*%n\ %f\ %r\ %y%=[%b\ %B]\ [l:%l/%L\ c:%c%V\ %p%%]
highlight User1 term=inverse cterm=inverse ctermfg=red
" 4 space tabs
set tabstop=4
set shiftwidth=4
set expandtab
set softtabstop=4
set smarttab
" show matching brackets
set showmatch
" start searching as soon as possible
set incsearch
augroup perl
" autoindent
autocmd FileType perl set autoindent
autocmd FileType perl set smartindent
" check perl code with :make
autocmd FileType perl set makeprg=perl\ -c\ %\ $*
autocmd FileType perl set errorformat=%f:%l:%m
autocmd FileType perl set autowrite
" make lines longer than 100 characters errors
autocmd FileType perl match ErrorMsg /\%>100v.\+/
" make tabs errors
autocmd FileType perl 2match ErrorMsg /[\t]/
augroup END