summaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2014-03-16 14:52:12 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2014-03-16 14:52:12 +0100
commit10b28c4175f6c9c1ca40e4d201f554359bc20aff (patch)
tree269c996dd6a8697652d745b0a0f18e80d17bc009 /ftplugin
parent95bc6710a4fd961ecc1d7d9f344e97fb690810b1 (diff)
downloadvim-polyglot-1.6.0.tar.gz
vim-polyglot-1.6.0.zip
Add opencl supportv1.6.0
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/opencl.vim15
1 files changed, 15 insertions, 0 deletions
diff --git a/ftplugin/opencl.vim b/ftplugin/opencl.vim
new file mode 100644
index 00000000..d89946fd
--- /dev/null
+++ b/ftplugin/opencl.vim
@@ -0,0 +1,15 @@
+if exists("b:did_ftplugin") | finish | endif
+
+if version > 600
+ runtime! ftplugin/c.vim
+endif
+
+" Smaller tab stops.
+setlocal tabstop=4
+setlocal shiftwidth=4
+
+" Smart tabbing/indenting
+setlocal smarttab
+setlocal smartindent
+
+let b:did_ftplugin = 1