Control Xcode from Vim.
This plugin is inspired by vim-xcode-preview.
- Build app
- Run app
- Clean Build Folder
- Refresh Canvas
If you use vim-plug, then add the following line to your vimrc file:
Plug 'pupepa/vim-xcode-control', { 'for': ['swift', 'objc'] }
and then use :PlugInstall
. Or, you can use any other plugin manager.
Before execute these following commands, you need to launch Xcode and open project.
:XcodeBuild
:XcodeRun
:XcodeClean
:XcodeRefreshCanvas
nnoremap <Plug>(xcode_control_build) :<C-u>XcodeBuild<CR>
nnoremap <Plug>(xcode_control_run) :<C-u>XcodeRun<CR>
nnoremap <Plug>(xcode_control_clean) :<C-u>XcodeClean<CR>
nnoremap <Plug>(xcode_control_refresh_canvas) :<C-u>XcodeRefreshCanvas<CR>