From 9a3b1f0b9bd045ff0b0f427b910ffb6211fc4d81 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Thu, 26 Mar 2020 14:55:30 +0100 Subject: [PATCH] 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. --- .vimrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.vimrc b/.vimrc index a4bdc73..4354793 100644 --- a/.vimrc +++ b/.vimrc @@ -42,3 +42,8 @@ autocmd FileType perl syntax on autocmd FileType go set sw=8 autocmd FileType go set tw=79 autocmd FileType go set noexpandtab + +autocmd BufRead,BufNewFile *.ts set filetype=javascript +autocmd FileType javascript set sw=2 + +autocmd FileType html set sw=2