Add typescript autogroup for .ts files

main
Buddy Sandidge 5 years ago
parent ac60eb45ee
commit e0c3b9b3de

@ -24,6 +24,7 @@ Plug 'tpope/vim-surround'
Plug 'Quramy/tsuquyomi' Plug 'Quramy/tsuquyomi'
Plug 'sheerun/vim-wombat-scheme' Plug 'sheerun/vim-wombat-scheme'
Plug 'leafgarland/typescript-vim' Plug 'leafgarland/typescript-vim'
Plug 'cespare/vim-toml' Plug 'cespare/vim-toml'
call plug#end() 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 scrolloff=5 " Keep 5 lines (top/bottom) for scope
set sidescrolloff=5 " Keep 5 lines at the size 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 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] " ~\file[+] [type] [line,column] [number of lines]
set statusline=%F%m%r%h%w\ [%Y]\ [%03l,%03v]\ [%L] set statusline=%F%m%r%h%w\ [%Y]\ [%03l,%03v]\ [%L]
@ -209,3 +210,7 @@ augroup END
augroup COMMIT_EDITMSG augroup COMMIT_EDITMSG
au! BufRead,BufNewFile COMMIT_EDITMSG set filetype=gitcommit au! BufRead,BufNewFile COMMIT_EDITMSG set filetype=gitcommit
augroup END augroup END
augroup typescript
au! BufRead,BufNewFile *.ts set filetype=typescript
augroup END

Loading…
Cancel
Save