noah /.vimrc

" functions
fun RmCR()
    let oldLine=line('.')
    exe ":%s/\r//g"
    exe ':' . oldLine
endfun

map <F5> :call RmCR()<CR>
map <F9> :noh<CR>
map <F12> :set number!<CR>

set paste
set confirm
set fileformats=unix
set expandtab
set autoindent
set smartindent
set background=dark
"set background=light
set nocompatible
set tabstop=4
set shiftwidth=4
set incsearch
set hlsearch
set ruler
syntax on
filetype on
filetype indent on
filetype plugin on

au BufNewFile,BufRead *.thtml setfiletype php
au BufNewFile,BufRead .functions setfiletype bash
au BufNewFile,BufRead .aliases setfiletype bash