comparison rc/vimrc @ 541:5cdef8f4360f

Cleanup file type setters.
author edogawaconan <me@myconan.net>
date Tue, 06 Jan 2015 03:26:39 +0900
parents 50fd59a959ea
children fc429d39ce9e
comparison
equal deleted inserted replaced
540:50fd59a959ea 541:5cdef8f4360f
80 80
81 " required by syntax file 81 " required by syntax file
82 " reference: https://github.com/elzr/vim-json/blob/master/ftplugin/json.vim 82 " reference: https://github.com/elzr/vim-json/blob/master/ftplugin/json.vim
83 let g:vim_json_syntax_conceal = 1 83 let g:vim_json_syntax_conceal = 1
84 augroup END 84 augroup END
85 autocmd BufRead,BufNewFile supervisord.conf :set ft=dosini
86 autocmd BufRead,BufNewFile Gemfile :set ft=ruby
87 autocmd BufRead,BufNewFile config.ru :set ft=ruby
88 autocmd BufRead,BufNewFile crontab.* :set noet
89 autocmd BufRead,BufNewFile crontab :set noet
90 autocmd BufRead,BufNewFile fstab :set noet
91 autocmd BufRead,BufNewFile */.git/COMMIT_EDITMSG :set noet
92 autocmd BufRead,BufNewFile .git/COMMIT_EDITMSG :set noet
93 autocmd BufRead,BufNewFile .gitconfig :set noet
94 autocmd BufRead,BufNewFile .git/config :set noet
95 autocmd BufRead,BufNewFile *.coffee :set ft=coffee
96 autocmd BufRead,BufNewFile *.erb :set ft=eruby
97 autocmd BufRead,BufNewFile *.less :set ft=less
98 autocmd BufRead,BufNewFile *.scss :set ft=scss
99 autocmd BufRead,BufNewFile *.slim :set ft=slim
100 autocmd BufRead,BufNewFile *.blade.php :set ft=blade
101 autocmd BufNewFile,BufRead *.json set filetype=json 85 autocmd BufNewFile,BufRead *.json set filetype=json
102 autocmd BufNewFile,BufRead *.jsonp set filetype=json 86 autocmd BufNewFile,BufRead *.jsonp set filetype=json
87 autocmd BufRead,BufNewFile *.blade.php set filetype=blade
88 autocmd BufRead,BufNewFile *.coffee set filetype=coffee
89 autocmd BufRead,BufNewFile *.erb set filetype=eruby
90 autocmd BufRead,BufNewFile *.less set filetype=less
91 autocmd BufRead,BufNewFile *.scss set filetype=scss
92 autocmd BufRead,BufNewFile *.slim set filetype=slim
93 autocmd BufRead,BufNewFile */.git/COMMIT_EDITMSG set noexpandtab
94 autocmd BufRead,BufNewFile .git/COMMIT_EDITMSG set noexpandtab
95 autocmd BufRead,BufNewFile .git/config set noexpandtab
96 autocmd BufRead,BufNewFile .gitconfig set noexpandtab
97 autocmd BufRead,BufNewFile Gemfile set filetype=ruby
98 autocmd BufRead,BufNewFile config.ru set filetype=ruby
99 autocmd BufRead,BufNewFile crontab set noexpandtab
100 autocmd BufRead,BufNewFile crontab.* set noexpandtab
101 autocmd BufRead,BufNewFile fstab set noexpandtab
102 autocmd BufRead,BufNewFile supervisord.conf set filetype=dosini
103 endif 103 endif
104 104
105 if has('autocmd') 105 if has('autocmd')
106 "Restore cursor position 106 "Restore cursor position
107 set viminfo='10,\"100,:20,%,n~/.viminfo 107 set viminfo='10,\"100,:20,%,n~/.viminfo