battlemidget /.vimrc

set nocompatible
set mouse=a
set ls=2
set scrolloff=3
set hlsearch
set incsearch
set ruler
set nobackup
set nowb
set noswapfile
set number
set ignorecase
set title
set ttyfast
set modeline
set modelines=3
set shortmess=atI
set nostartofline
set whichwrap=b,s,h,l,<,>,[,]
set et
set listchars=eol:$,tab:>-
set list

set noautoindent
set nosmartindent
set nocindent

syntax on

if has("autocmd")
	au FileType helpfile set nonumber
	au FileType helpfile nnoremap  
	au FileType helpfile nnoremap  
	au FileType mail,text set tw=72
	au FileType cpp,c,pl,sh,php setl autoindent smartindent cindent ts=8 sw=8
        au FileType python setl ts=4 sw=4

	au BufNewFile,BufRead modprobe.conf set syntax=modconf
endif

if has("gui_running")
        set lines=50
        set columns=100
        set guifont=Monospace\ 10
        set selectmode=mouse,key,cmd
else
        colorscheme koehler
        set background=dark
endif

map  :bn
map  :bp
map ,e :e ~/.vimrc
map ,u :source ~/.vimrc

hi Pmenu guibg=#333333
hi PmenuSel guibg=#555555 guifg=#ffffff

set ffs=unix,dos,mac

map  /
map  ?

iab xdate =strftime("%d/%m/%y %H:%M:%S")
iab xname Adam Stokes

map  :sb

set pastetoggle=