-
Notifications
You must be signed in to change notification settings - Fork 0
/
_vimrc.ft
28 lines (22 loc) · 1.15 KB
/
_vimrc.ft
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
" Python
au FileType python setl autoindent
au FileType python setl smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
au FileType python setl tabstop=8 expandtab shiftwidth=4 softtabstop=4
" Ruby
au BufNewFile,BufRead Gemfile,Rakefile,Thorfile,Guardfile set filetype=ruby
au FileType ruby setl autoindent
au FileType ruby setl tabstop=2 expandtab shiftwidth=2 softtabstop=2
" js & alt-js
au FileType javascript setl shiftwidth=2 softtabstop=2 tabstop=2 expandtab nocindent
au FileType coffee setl shiftwidth=2 softtabstop=2 tabstop=2 expandtab foldmethod=indent nofoldenable
" Go
au FileType go setl noexpandtab nolist tabstop=2 shiftwidth=2 softtabstop=2 nofoldenable
au FileType go compiler go
au BufWritePre *.go Fmt
" Coffee
au BufNewFile,BufRead *.coffee filetype=coffeescript
au BufNewFile,BufRead *.coffee filetype=coffeescript
" Template & HTML-template & Other plain text
au FileType jade setl shiftwidth=2 softtabstop=2 tabstop=2 expandtab foldmethod=indent nofoldenable
au FileType yaml setl shiftwidth=2 softtabstop=2 tabstop=2 expandtab foldmethod=indent nofoldenable
au FileType sh setl expandtab tabstop< softtabstop=4 shiftwidth=4