aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <matthew.j.singleton@gmail.com>2011-01-01 20:36:23 -0500
committerMatt Singleton <matthew.j.singleton@gmail.com>2011-01-01 20:36:23 -0500
commita924689c38482b652c72977aae1e532f3cc462ba (patch)
tree2d92aeb641f61c0e858ebfe1c8eef9fca5c05c38
parent76e4d24107fb9609ee70ae8884da3941df433356 (diff)
adding new filetypes for html and zsh
-rw-r--r--vimrc8
1 files changed, 7 insertions, 1 deletions
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 *