Set filetypes with autocmds (I think these will be fixed by some syntax scripts)

This commit is contained in:
Eryn Wells 2013-01-07 09:55:57 -08:00
parent cd8896326e
commit 8fbbca85f4

5
vimrc
View file

@ -194,7 +194,10 @@ if has('autocmd')
filetype plugin indent on
" Markdown files can also have the .md extension
autocmd BufAdd,BufEnter,BufFilePost *.md :setlocal ft=markdown
autocmd BufAdd,BufEnter,BufFilePost *.md :setf markdown
" SConstruct and SConscript files are Python
autocmd BufAdd,BufEnter,BufFilePost SConstruct :setf python
autocmd BufAdd,BufEnter,BufFilePost SConscript :setf python
" Jump to last known cursor position unless it's the first line, or past the
" end of the file