From e0c3b9b3de2803d34f98df4c4c162e6c0f83f0e9 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Sat, 14 Dec 2019 14:30:21 -0800 Subject: [PATCH] Add typescript autogroup for .ts files --- vimrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 2290c62..c0f48b4 100644 --- a/vimrc +++ b/vimrc @@ -24,6 +24,7 @@ Plug 'tpope/vim-surround' Plug 'Quramy/tsuquyomi' Plug 'sheerun/vim-wombat-scheme' Plug 'leafgarland/typescript-vim' + Plug 'cespare/vim-toml' call plug#end() @@ -154,7 +155,7 @@ set incsearch " BUT do highlight as you type you search phrase set scrolloff=5 " Keep 5 lines (top/bottom) for scope set sidescrolloff=5 " Keep 5 lines at the size set list " we do what to show tabs, to ensure we get them out of my files -set listchars=tab:_\ ,trail:… " show tabs and trailing whitespace +set listchars=tab:\ \ ,trail:… " show tabs and trailing whitespace " ~\file[+] [type] [line,column] [number of lines] set statusline=%F%m%r%h%w\ [%Y]\ [%03l,%03v]\ [%L] @@ -209,3 +210,7 @@ augroup END augroup COMMIT_EDITMSG au! BufRead,BufNewFile COMMIT_EDITMSG set filetype=gitcommit augroup END + +augroup typescript + au! BufRead,BufNewFile *.ts set filetype=typescript +augroup END