From a924689c38482b652c72977aae1e532f3cc462ba Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Sat, 1 Jan 2011 20:36:23 -0500 Subject: adding new filetypes for html and zsh --- vimrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 6197000..1c824bc 100644 --- a/vimrc +++ b/vimrc @@ -37,7 +37,9 @@ if has("autocmd") au! au FileType text setlocal textwidth=72 - au FileType html,xhtml setlocal ts=2 sw=2 sts=2 expandtab + au FileType html setlocal ts=2 sw=2 sts=2 expandtab + au FileType xhtml setlocal ts=2 sw=2 sts=2 expandtab + au FileType htmldjango setlocal ts=2 sw=2 sts=2 expandtab au FileType ruby setlocal ts=2 sw=2 sts=2 expandtab " text files @@ -52,6 +54,10 @@ if has("autocmd") au BufRead,BufNewFile *.mako setlocal filetype=html au BufRead,BufNewFile *.ftl setlocal filetype=html + " zsh configs and scripts + au BufRead,BufNewFile *.zsh-theme setlocal filetype=zsh + au BufRead,BufNewFile *.zsh setlocal filetype=zsh + " When editing a file, always jump to the last known cursor position. " Don't do it when the position is invalid or when inside an event handler au BufReadPost * -- cgit v1.2.3