Skip to content

Working with XCode #8

Description

@jwu

Here has a nice document: http://www.kunli.info/2010/09/19/xcode-vim-integration/

update the :make command to tell Xcode to build
set makeprg=osascript\ -e\ \”tell\ application\ \\\”Xcode\\\”\”\ -e\ \”build\”\ -e\ \”end\ tell\”

function! XcodeClean()
silent execute ‘:!osascript -e “tell application \”Xcode\”" -e “Clean” -e “end tell”‘
endfunction
command! -complete=command XcodeClean call XcodeClean()

function! XcodeDebug()
silent execute!osascript -e “tell application \”Xcode\”" -e “Debug” -e “end tell”‘
endfunction
command! -complete=command XcodeDebug call XcodeDebug()

” Command-K cleans the project
:noremap :XcodeClean
” Command-Return Starts the program in the debugger
:noremap :XcodeDebug

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions