diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2015-12-06 11:58:09 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2015-12-06 11:58:15 +0100 |
commit | b4b054ebf56caf4ac8d721b125e368d9b45b8551 (patch) | |
tree | 03a39a3fd2ce232d8fe54900a1a556bf18f995a6 /ftplugin/objc.vim | |
parent | 08ea94e01188531e819e5d6bea5c84a773b4eb98 (diff) | |
download | vim-polyglot-b4b054ebf56caf4ac8d721b125e368d9b45b8551.tar.gz vim-polyglot-b4b054ebf56caf4ac8d721b125e368d9b45b8551.zip |
Add objc syntax highlighting, closes #77
Diffstat (limited to 'ftplugin/objc.vim')
-rw-r--r-- | ftplugin/objc.vim | 10 |
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 |