summaryrefslogtreecommitdiffstats
path: root/contrib/pcmk-ftdetect.vim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--contrib/pcmk-ftdetect.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/pcmk-ftdetect.vim b/contrib/pcmk-ftdetect.vim
new file mode 100644
index 0000000..e8e5387
--- /dev/null
+++ b/contrib/pcmk-ftdetect.vim
@@ -0,0 +1,2 @@
+" test for match at first character
+au BufNewFile,BufRead * if match(getline(1), 'node ')==0 | set ft=pcmk | endif