Move autocmds per FileType to ftdetect scripts

This commit is contained in:
Eryn Wells 2012-01-11 16:43:18 -08:00
parent 9fc695b273
commit fccef0454c

9
vimrc
View file

@ -190,15 +190,6 @@ nmap <leader>sn :e ~/.vim/bundle/snipmate/snippets/<C-r>=&filetype<CR>.snippets<
if has('autocmd')
filetype plugin indent on
" spelling for text files
autocmd FileType text set spell
" spaces as tabs for python
autocmd FileType python setlocal expandtab
" don't show tabs in html and xml
autocmd FileType html,htmldjango,xml set sw=2 sts=2 listchars-=tab:▸\
autocmd BufNewFile,BufRead *.ledger setf ledger | comp ledger
autocmd FileType ledger normal zR
" Jump to last known cursor position unless it's the first line, or past the
" end of the file