summaryrefslogtreecommitdiffstats
path: root/ftplugin
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2015-12-06 11:58:09 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2015-12-06 11:58:15 +0100
commitb4b054ebf56caf4ac8d721b125e368d9b45b8551 (patch)
tree03a39a3fd2ce232d8fe54900a1a556bf18f995a6 /ftplugin
parent08ea94e01188531e819e5d6bea5c84a773b4eb98 (diff)
downloadvim-polyglot-b4b054ebf56caf4ac8d721b125e368d9b45b8551.tar.gz
vim-polyglot-b4b054ebf56caf4ac8d721b125e368d9b45b8551.zip
Add objc syntax highlighting, closes #77
Diffstat (limited to 'ftplugin')
-rw-r--r--ftplugin/objc.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/ftplugin/objc.vim b/ftplugin/objc.vim
new file mode 100644
index 00000000..409fb1a2
--- /dev/null
+++ b/ftplugin/objc.vim
@@ -0,0 +1,10 @@
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'objc') == -1
+
+" Use C++ style comment strings with commentary.vim
+setl commentstring=//%s
+
+" Search for include files inside frameworks (used for gf etc.)
+setl includeexpr=substitute(v:fname,'\\([^/]\\+\\)/\\(.\\+\\)','/System/Library/Frameworks/\\1.framework/Headers/\\2','')
+
+
+endif