From b4b054ebf56caf4ac8d721b125e368d9b45b8551 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 6 Dec 2015 11:58:09 +0100 Subject: Add objc syntax highlighting, closes #77 --- ftplugin/objc.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ftplugin/objc.vim (limited to 'ftplugin') 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 -- cgit v1.2.3