From 8fbbca85f448894d1f5d5fe2c577641485e58d63 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Mon, 7 Jan 2013 09:55:57 -0800 Subject: [PATCH] Set filetypes with autocmds (I think these will be fixed by some syntax scripts) --- vimrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 07a6fc1..0040567 100644 --- a/vimrc +++ b/vimrc @@ -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