Mercurial > ec-dotfiles
diff rc/vimrc @ 596:283ebb842957
Add nginx syntax
author | nanaya <me@myconan.net> |
---|---|
date | Wed, 22 Mar 2017 00:28:08 +0900 |
parents | 28bd58aaa0ab |
children | aa448b6e06ae |
line wrap: on
line diff
--- a/rc/vimrc Wed Mar 22 00:27:53 2017 +0900 +++ b/rc/vimrc Wed Mar 22 00:28:08 2017 +0900 @@ -109,12 +109,19 @@ autocmd BufRead,BufNewFile config.ru set filetype=ruby autocmd BufRead,BufNewFile supervisord.conf set filetype=dosini + autocmd BufRead,BufNewFile *.nginx set ft=nginx + autocmd BufRead,BufNewFile */etc/nginx/* set ft=nginx + autocmd BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx + autocmd BufRead,BufNewFile */opt/nginx/conf/* set ft=nginx + autocmd BufRead,BufNewFile nginx.conf set ft=nginx + autocmd FileType coffee call In2() autocmd FileType eruby call In2() autocmd FileType ruby call In2() autocmd FileType scss call In2() autocmd FileType less call In2() autocmd FileType yaml call In2() + autocmd FileType nginx setlocal commentstring=#\ %s endif if has('autocmd')