dotvim / vimrc

syntax on
filetype plugin indent on
autocmd FileType python set comments+=:# 

set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4

au BufNewFile,BufREad ** set filetype=mail
colorscheme slate2

au BufNewFile,BufRead *.as	set filetype=actionscript
au BufNewFile,BufRead *.hx	set filetype=haxe
au BufNewFile,BufRead *.ssg	set filetype=xml
au BufNewFile,BufRead *.frag,*.vert,*.fp,*.vp,*.glsl,*VS.txt,*FS.txt,*PS.txt set filetype=glsl 

autocmd FileType html set ft=htmldjango.html.django_template
autocmd FileType xhtml set ft=htmldjango.xhtml.django_template
"autocmd FileType python compiler pylint

set guioptions-=m
set guioptions-=T
set guioptions-=r
set guioptions-=L

set ruler

command! W w
command! Q q

map <F1> <Esc>
imap <F1> <Esc>

" Jump to the last position when reopening a file
if has("autocmd")
  au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif

set autoindent
set autoread
set showcmd		" Show (partial) command in status line.
set showmatch		" Show matching brackets.
set ignorecase		" Do case insensitive matching
set smartcase		" Do smart case matching
set incsearch		" Incremental search
set autowrite		" Automatically save before commands like :next and :make
set hidden             " Hide buffers when they are abandoned
set mouse=a		" Enable mouse usage (all modes)
set hlsearch

if has('gui_running')
    colorscheme xoria256

" ysiti = surround contents of html tag with {% trans "" %}
let g:surround_105 = "{% trans \"\r\" %}"

call pathogen#infect()