diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-06 15:54:31 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-06 15:54:31 +0200 |
commit | 48e07bc5014fecfdff24f75124a65634c216c9e2 (patch) | |
tree | 2e16f9a515364e27ac451acbc313b1d7ca518790 /ftplugin/objc.vim | |
parent | c8897c9c18ee79d3780dd352aee34bf6498c625d (diff) | |
download | vim-polyglot-48e07bc5014fecfdff24f75124a65634c216c9e2.tar.gz vim-polyglot-48e07bc5014fecfdff24f75124a65634c216c9e2.zip |
Improve guard to support concatenated files
Diffstat (limited to 'ftplugin/objc.vim')
-rw-r--r-- | ftplugin/objc.vim | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ftplugin/objc.vim b/ftplugin/objc.vim index b3cfc708..5378f43b 100644 --- a/ftplugin/objc.vim +++ b/ftplugin/objc.vim @@ -1,10 +1,8 @@ -if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'objc') != -1 - finish -endif - +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 |