~ 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 <buffer><cr> <c-]>
        au FileType helpfile nnoremap <buffer><bs> <c-T>
        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 <right> :bn<cr>
map <left> :bp<cr>
map ,e :e ~/.vimrc<cr>
map ,u :source ~/.vimrc<cr>

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

set ffs=unix,dos,mac

map <space> /
map <c-space> ?

iab xdate <c-r>=strftime("%d/%m/%y %H:%M:%S")<cr>
iab xname Adam Stokes

map <c-q> :sb

set pastetoggle=<F3>