27 lines
735 B
VimL
27 lines
735 B
VimL
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'vim') == -1
|
|
|
|
" Vim filetype plugin file
|
|
" Language: Objective C
|
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
|
" Last Change: 2003 Jan 15
|
|
|
|
" Only do this when not done yet for this buffer
|
|
if exists("b:did_ftplugin")
|
|
finish
|
|
endif
|
|
|
|
" Behaves just like C
|
|
runtime! ftplugin/c.vim ftplugin/c_*.vim ftplugin/c/*.vim
|
|
|
|
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
|