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:
parent
c20b8fce3c
commit
9a3b1f0b9b
5
.vimrc
5
.vimrc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue