noah /.vimrc

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

map  :call RmCR()
map  :noh
map  :set number!

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