Mercurial > ec-dotfiles
comparison rc/vimrc @ 620:7ac088ee101a
Add typescript vim syntax
author | nanaya <me@nanaya.pro> |
---|---|
date | Tue, 30 Oct 2018 19:04:56 +0900 |
parents | 7045cd713864 |
children | 1002aff7e865 |
comparison
equal
deleted
inserted
replaced
619:7045cd713864 | 620:7ac088ee101a |
---|---|
110 autocmd BufRead,BufNewFile *.slim set filetype=slim | 110 autocmd BufRead,BufNewFile *.slim set filetype=slim |
111 autocmd BufRead,BufNewFile Gemfile set filetype=ruby | 111 autocmd BufRead,BufNewFile Gemfile set filetype=ruby |
112 autocmd BufRead,BufNewFile Vagrantfile set filetype=ruby | 112 autocmd BufRead,BufNewFile Vagrantfile set filetype=ruby |
113 autocmd BufRead,BufNewFile config.ru set filetype=ruby | 113 autocmd BufRead,BufNewFile config.ru set filetype=ruby |
114 autocmd BufRead,BufNewFile supervisord.conf set filetype=dosini | 114 autocmd BufRead,BufNewFile supervisord.conf set filetype=dosini |
115 " stolen from https://github.com/leafgarland/typescript-vim/blob/master/ftdetect/typescript.vim | |
116 " use `set filetype` to override default filetype=xml for *.ts files | |
117 autocmd BufNewFile,BufRead *.ts set filetype=typescript | |
118 " use `setfiletype` to not override any other plugins like ianks/vim-tsx | |
119 autocmd BufNewFile,BufRead *.tsx setfiletype typescript | |
115 | 120 |
116 autocmd BufRead,BufNewFile *.nginx set ft=nginx | 121 autocmd BufRead,BufNewFile *.nginx set ft=nginx |
117 autocmd BufRead,BufNewFile */etc/nginx/* set ft=nginx | 122 autocmd BufRead,BufNewFile */etc/nginx/* set ft=nginx |
118 autocmd BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx | 123 autocmd BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx |
119 autocmd BufRead,BufNewFile */opt/nginx/conf/* set ft=nginx | 124 autocmd BufRead,BufNewFile */opt/nginx/conf/* set ft=nginx |