summaryrefslogtreecommitdiffstats
path: root/indent/dart.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2015-12-06 11:38:02 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2015-12-06 11:38:02 +0100
commit5658b62b7afb7d4855e2634d8d067cbdf1d332c9 (patch)
tree334b18c006622e75e7f6a3ed89a0091a1c8834e0 /indent/dart.vim
parent938a2f1667820c0ac9d5b08d4118aaf53e76a0cb (diff)
downloadvim-polyglot-5658b62b7afb7d4855e2634d8d067cbdf1d332c9.tar.gz
vim-polyglot-5658b62b7afb7d4855e2634d8d067cbdf1d332c9.zip
Add dart language support, closes #93
Diffstat (limited to 'indent/dart.vim')
-rw-r--r--indent/dart.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/indent/dart.vim b/indent/dart.vim
new file mode 100644
index 00000000..af4cb7df
--- /dev/null
+++ b/indent/dart.vim
@@ -0,0 +1,13 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'dart') == -1
+
+if exists('b:did_indent')
+ finish
+endif
+let b:did_indent = 1
+
+setlocal cindent
+setlocal cinoptions+=j1,J1
+
+let b:undo_indent = 'setl cin< cino<'
+
+endif