aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <msingleton@wgen.net>2010-05-06 15:14:25 -0400
committerMatt Singleton <msingleton@wgen.net>2010-05-06 15:14:25 -0400
commit4fecb0a442764aac090c08c3c68b97561911e6ab (patch)
tree2eeefd9b7e62c18a6179b484ae35e224341fe956
parent8db3cf3e01ae203fbd30c0fb4e6f6b93f740f681 (diff)
update filetype settings for text and html
-rw-r--r--vimrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index 22860cf..47b23e4 100644
--- a/vimrc
+++ b/vimrc
@@ -35,10 +35,13 @@ if has("autocmd")
filetype plugin indent on
au!
- au FileType text setlocal textwidth=78
+ au FileType text setlocal textwidth=72
au FileType html setlocal ts=2 sw=2 sts=2 expandtab
au FileType ruby setlocal ts=2 sw=2 sts=2 expandtab
+ " text files
+ au BufRead,BufNewFile *.txt setlocal filetype=text
+
" php files
au BufRead,BufNewFile *.module setlocal filetype=php
au BufRead,BufNewFile *.inc setlocal filetype=php
@@ -46,6 +49,7 @@ if has("autocmd")
" html templates
au BufRead,BufNewFile *.mako setlocal filetype=html
+ au BufRead,BufNewFile *.ftl setlocal filetype=html
" 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