[ Content | View menu ]


Written on April 26, 2004

" Set settings
set autoindent
set title
set ruler
set nocompatible
set showcmd
set ts=4
set tw=72
set backspace=indent,eol,start
set incsearch
syntax on

" Remember where I last edited a file
set viminfo='10,"100,:20,%,n~/.viminfo
au BufReadPost * if line("'"") > 0|if line("'"") < = line("$")|exe("norm '"")|else|exe "norm $"|endif|endif

if &term =~ "xterm-debian" || &term =~ "xterm-xfree86"
set t_Co=16
set t_Sf=^[[3%dm
set t_Sb=^[[4%dm
" Settings set

" Map mappings
:inoremap ( ()i
:inoremap [ []i
:inoremap " ""i
:inoremap { {}i
:inoremap < <>i

map W :!aspell -c -x %
map F gqap

" http://vim.sourceforge.net/tips/tip.php?tip_id=465
" make an element out of anything you type with a CR in the middle
imap ,,, bdwapakA

" Fix common typos
iab teh the
iab hte the
iab adn and
iab taht that
iab htat that
iab fo of
iab ot to
" Mapping mapped

if has("autocmd")
" Enabled file type detection
" Use the default filetype settings. If you also want to load indent files
" to automatically do language-dependent indenting add 'indent' as well.
filetype plugin on
endif " has ("autocmd")

Filed in: config.

Comments closed