Skip to content

Instantly share code, notes, and snippets.

@gregsexton
Created May 31, 2012 20:41
Show Gist options
  • Save gregsexton/2846089 to your computer and use it in GitHub Desktop.
Save gregsexton/2846089 to your computer and use it in GitHub Desktop.
The core of my objc.vim ftplugin
setlocal makeprg=xcodebuild\ -configuration\ Debug
setlocal errorformat=%f:%l:%c:%.%#\ error:\ %m,%f:%l:%c:%.%#\ warning:\ %m,%-G%.%#
command! -buffer OpenFileInXCode silent !xed %
command! -buffer RebuildTags exec "!~/bin/ctags -R --language-force=ObjectiveC ."
nmap <buffer> <silent> K :exec 'silent !open "'. escape('http://www.google.com/search?q='.expand('<cword>').'&btnI=745', ' &!%').'"'<cr>:redraw!<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment