" general per-language filetype file
if exists("did\_load\_filetypes")
  finish
endif
" Filetype mappingss
augroup markdown
  au! BufRead,BufNewFile *.mkd   setfiletype mkd
augroup END
augroup mako
  au! BufRead,BufNewFile *.mak,*.mako  setfiletype mako
augroup END
augroup csv
  au! BufNewFile,BufRead *.csv setf csv
augroup END

au BufRead,BufNewFile *.go set filetype=go

"Settings per filetype
augroup python
  "autocmd FileType python set omnifunc=pythoncomplete#Complete
  "autocmd FileType python call SuperTabSetCompletionType("<C-X><C-O>")
  "autocmd FileType python set completeopt-=preview
  autocmd FileType python set ts=4
  autocmd FileType python set softtabstop=4
  autocmd FileType python set shiftwidth=4
  autocmd FileType python set expandtab
augroup END
augroup javascript
  autocmd FileType javascript set ts=4
  autocmd FileType javascript set softtabstop=4
  autocmd FileType javascript set shiftwidth=4
  autocmd FileType javascript set expandtab
augroup END

augroup mkd
  autocmd FileType mkd set ai formatoptions=tcroqn2 comments=n:&gt;
augroup END

augroup mediawiki
    autocmd BufRead,BufNewFile *.wiki setfiletype mediawiki
    autocmd BufRead,BufNewFile *.wikipedia.org* setfiletype mediawiki
augroup END

