Handle .ts and .html files

Recognize .ts files as javascript (its really typescript but I don't
have syntax highlighting for that). Set sw for javascript and html.
This commit is contained in:
Peter J. Holzer 2020-03-26 14:55:30 +01:00
parent c20b8fce3c
commit 9a3b1f0b9b
1 changed files with 5 additions and 0 deletions

5
.vimrc
View File

@ -42,3 +42,8 @@ autocmd FileType perl syntax on
autocmd FileType go set sw=8 autocmd FileType go set sw=8
autocmd FileType go set tw=79 autocmd FileType go set tw=79
autocmd FileType go set noexpandtab autocmd FileType go set noexpandtab
autocmd BufRead,BufNewFile *.ts set filetype=javascript
autocmd FileType javascript set sw=2
autocmd FileType html set sw=2