summaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
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