Simple vimrc to disable auto-indent, enable spell checking of text files, enable cool colors and add a macro for updating a time stamp.
" Thomas Cort <tom@tomcort.com>
" Last update: Mon Mar 17 21:31:55 EDT 2008
if v:version < 700
echoerr 'This vimrc requires Vim 7 or later.'
quit
endif
" Don't emulate vi bugs and limitations!
set nocompatible
" Colorize Text
syntax on
" Highlight Search terms
set hlsearch
set incsearch
nmap nh :nohlsearch<CR>
set nomodeline
" Set colors
" colorscheme tcort
" Use GNU Bash
set shell=bash
" Real people don't make backups
set nobackup
" In space, no one can hear your bell ding
set noerrorbells
" Disable auto-indent and auto-format
set noautoindent
set nosmartindent
set nocindent
set nopaste
set pastetoggle=<F3>
if has("autocmd")
" Enable spell check for text files
autocmd BufNewFile,BufRead *.txt setlocal spell spelllang=en
endif
" Update the Last update timestamp.
iab YDATE <C-R>=strftime("%a %b %d %T %Z %Y")<CR>
map ,L 1G/Last update:\s*/e+1<CR>CYDATE<ESC>
" Use unix end-of-line format
set fileformats=unix
set ff=unix
" Common Misspellings
iab beacuse because
iab becuase because
iab acn can
iab cna can
iab centre center
iab chnage change
iab chnages changes
iab chnaged changed
iab chnagelog changelog
iab Chnage Change
iab Chnages Changes
iab ChnageLog ChangeLog
iab debain debian
iab Debain Debian
iab defualt default
iab Defualt Default
iab differnt different
iab diffrent different
iab emial email
iab Emial Email
iab figth fight
iab figther fighter
iab fro for
iab fucntion function
iab ahve have
iab homepgae homepage
iab logifle logfile
iab lokk look
iab lokking looking
iab mial mail
iab Mial Mail
iab miantainer maintainer
iab amke make
iab mroe more
iab nwe new
iab recieve receive
iab recieved received
iab erturn return
iab retrun return
iab retunr return
iab seperate separate
iab shoudl should
iab soem some
iab taht that
iab thta that
iab teh the
iab tehy they
iab truely truly
iab waht what
iab wiht with
iab whic which
iab whihc which
iab yuo you
iab databse database
iab versnio version
iab obnsolete obsolete
iab flase false
iab recrusive recursive
iab Recrusive Recursive
" Days
iab monday Monday
iab tuesday Tuesday
iab wednesday Wednesday
iab thursday Thursday
iab friday Friday
iab saturday Saturday
iab sunday Sunday
" Months
iab january January
iab february February
iab march March
iab april April
iab may May
iab june June
iab july July
iab august August
iab september September
iab october October
iab november November
iab december December