Skip to content

Commit

Permalink
Search for include files inside system frameworks
Browse files Browse the repository at this point in the history
This enables commands like gf on framework imports.
  • Loading branch information
b4winckler committed Jan 1, 2012
1 parent 08d9edd commit 52f4c42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ftplugin/objc.vim
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
" 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','')

0 comments on commit 52f4c42

Please sign in to comment.