Mercurial > ec-dotfiles
comparison 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 |
comparison
equal
deleted
inserted
replaced
595:0e72765944d4 | 596:283ebb842957 |
---|---|
107 autocmd BufRead,BufNewFile Gemfile set filetype=ruby | 107 autocmd BufRead,BufNewFile Gemfile set filetype=ruby |
108 autocmd BufRead,BufNewFile Vagrantfile set filetype=ruby | 108 autocmd BufRead,BufNewFile Vagrantfile set filetype=ruby |
109 autocmd BufRead,BufNewFile config.ru set filetype=ruby | 109 autocmd BufRead,BufNewFile config.ru set filetype=ruby |
110 autocmd BufRead,BufNewFile supervisord.conf set filetype=dosini | 110 autocmd BufRead,BufNewFile supervisord.conf set filetype=dosini |
111 | 111 |
112 autocmd BufRead,BufNewFile *.nginx set ft=nginx | |
113 autocmd BufRead,BufNewFile */etc/nginx/* set ft=nginx | |
114 autocmd BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx | |
115 autocmd BufRead,BufNewFile */opt/nginx/conf/* set ft=nginx | |
116 autocmd BufRead,BufNewFile nginx.conf set ft=nginx | |
117 | |
112 autocmd FileType coffee call In2() | 118 autocmd FileType coffee call In2() |
113 autocmd FileType eruby call In2() | 119 autocmd FileType eruby call In2() |
114 autocmd FileType ruby call In2() | 120 autocmd FileType ruby call In2() |
115 autocmd FileType scss call In2() | 121 autocmd FileType scss call In2() |
116 autocmd FileType less call In2() | 122 autocmd FileType less call In2() |
117 autocmd FileType yaml call In2() | 123 autocmd FileType yaml call In2() |
124 autocmd FileType nginx setlocal commentstring=#\ %s | |
118 endif | 125 endif |
119 | 126 |
120 if has('autocmd') | 127 if has('autocmd') |
121 "Restore cursor position | 128 "Restore cursor position |
122 set viminfo='10,\"100,:20,%,n~/.viminfo | 129 set viminfo='10,\"100,:20,%,n~/.viminfo |