Mercurial > ec-dotfiles
comparison rc/vimrc @ 636:8812b9230a68
Merge
author | nanaya <me@nanaya.pro> |
---|---|
date | Tue, 14 Jan 2020 11:09:50 +0900 |
parents | 5d3ce722285a ced2ee9efd9f |
children | 758ced52ee62 |
comparison
equal
deleted
inserted
replaced
635:5d3ce722285a | 636:8812b9230a68 |
---|---|
115 autocmd BufRead,BufNewFile php-fpm.conf set filetype=dosini | 115 autocmd BufRead,BufNewFile php-fpm.conf set filetype=dosini |
116 autocmd BufRead,BufNewFile */php-fpm.d/* set filetype=dosini | 116 autocmd BufRead,BufNewFile */php-fpm.d/* set filetype=dosini |
117 " stolen from https://github.com/leafgarland/typescript-vim/blob/master/ftdetect/typescript.vim | 117 " stolen from https://github.com/leafgarland/typescript-vim/blob/master/ftdetect/typescript.vim |
118 " use `set filetype` to override default filetype=xml for *.ts files | 118 " use `set filetype` to override default filetype=xml for *.ts files |
119 autocmd BufNewFile,BufRead *.ts set filetype=typescript | 119 autocmd BufNewFile,BufRead *.ts set filetype=typescript |
120 " use `setfiletype` to not override any other plugins like ianks/vim-tsx | 120 autocmd BufNewFile,BufRead *.tsx set filetype=typescriptreact |
121 autocmd BufNewFile,BufRead *.tsx setfiletype typescript | |
122 | 121 |
123 autocmd BufRead,BufNewFile *.nginx set ft=nginx | 122 autocmd BufRead,BufNewFile *.nginx set ft=nginx |
124 autocmd BufRead,BufNewFile */etc/nginx/* set ft=nginx | 123 autocmd BufRead,BufNewFile */etc/nginx/* set ft=nginx |
125 autocmd BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx | 124 autocmd BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx |
126 autocmd BufRead,BufNewFile */opt/nginx/conf/* set ft=nginx | 125 autocmd BufRead,BufNewFile */opt/nginx/conf/* set ft=nginx |
134 autocmd FileType less call In2() | 133 autocmd FileType less call In2() |
135 autocmd FileType yaml call In2() | 134 autocmd FileType yaml call In2() |
136 autocmd FileType json call In2() | 135 autocmd FileType json call In2() |
137 autocmd FileType javascript call In2() | 136 autocmd FileType javascript call In2() |
138 autocmd FileType typescript call In2() | 137 autocmd FileType typescript call In2() |
138 autocmd FileType typescript.tsx call In2() | |
139 autocmd FileType nginx setlocal commentstring=#\ %s | 139 autocmd FileType nginx setlocal commentstring=#\ %s |
140 autocmd FileType nginx setlocal iskeyword& | 140 autocmd FileType nginx setlocal iskeyword& |
141 endif | 141 endif |
142 | 142 |
143 if has('autocmd') | 143 if has('autocmd') |