-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfiletypes
24 lines (18 loc) · 827 Bytes
/
filetypes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
" use filetype plugins to determine indent settings
filetype plugin indent on
" ruby and yaml files are indented by two
autocmd FileType ruby,rdoc,cucumber,yaml set softtabstop=2 shiftwidth=2
" Gemfile, Isolate, and config.ru are ruby
autocmd BufNewFile,BufRead Gemfile setfiletype ruby
autocmd BufNewFile,BufRead Isolate setfiletype ruby
autocmd BufNewFile,BufRead config.ru setfiletype ruby
" set up compiler for ruby files
autocmd FileType ruby compiler ruby
" don't show whitespace in help files
autocmd FileType help set nolist
" set filetype on config files for vim and mutt
autocmd BufNewFile,BufRead ~/.vim/* setfiletype vim
autocmd BufNewFile,BufRead ~/.bash/* setfiletype sh
au BufNewFile,BufRead *.mustache set syntax=mustache
au BufNewFile,BufRead *.jst set syntax=jst
au BufNewFile,BufRead *.j setf objj