summaryrefslogtreecommitdiffstats
path: root/ftplugin/typescript.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2015-03-10 21:56:33 -0700
committerAdam Stankiewicz <sheerun@sher.pl>2015-03-10 21:56:33 -0700
commitacd7ce59503b22ac7663fc25776efe25e266f1d4 (patch)
tree0a7b4c05f478fa529ddf81a359528cddf70fb4ab /ftplugin/typescript.vim
parentf24fecc338b5129a47c343f61daad2c2fe7a4ab0 (diff)
downloadvim-polyglot-1.13.1.tar.gz
vim-polyglot-1.13.1.zip
Updatev1.13.1
Diffstat (limited to 'ftplugin/typescript.vim')
-rw-r--r--ftplugin/typescript.vim17
1 files changed, 17 insertions, 0 deletions
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 <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