vim-polyglot/ftplugin/typescript.vim

20 lines
420 B
VimL
Raw Normal View History

2015-03-11 00:56:33 -04:00
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo-=C
2013-09-26 06:41:08 -04:00
compiler typescript
setlocal commentstring=//\ %s
2015-03-11 00:56:33 -04:00
" Set 'formatoptions' to break comment lines but not other lines,
" " and insert the comment leader when hitting <CR> or using "o".
setlocal formatoptions-=t formatoptions+=croql
let b:undo_ftplugin = "setl fo< ofu< com< cms<"
let &cpo = s:cpo_save
unlet s:cpo_save