From acd7ce59503b22ac7663fc25776efe25e266f1d4 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 10 Mar 2015 21:56:33 -0700 Subject: Update --- ftplugin/typescript.vim | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'ftplugin/typescript.vim') diff --git a/ftplugin/typescript.vim b/ftplugin/typescript.vim index 9e98e790..ed1b8aae 100644 --- a/ftplugin/typescript.vim +++ b/ftplugin/typescript.vim @@ -1,2 +1,19 @@ +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +let s:cpo_save = &cpo +set cpo-=C + compiler typescript setlocal commentstring=//\ %s + +" Set 'formatoptions' to break comment lines but not other lines, +" " and insert the comment leader when hitting 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 -- cgit v1.2.3