A bundle of tools for CocoaPods of Vim.
Plug 'hanleylee/vim-cocoapods'
-
g:PodsConfigFile
: pods config file, filetype should be json" This property is necessary! let g:PodsConfigFile = '/path/to/pods_config.json'
And the json file format should be following:
"pod1": { "url": "[email protected]:xxx/pod1.git", "path": "path/to/pod1" }, "pod2": { "url": "[email protected]:xxx/pod2.git", "path": "path/to/pod2" }
-
g:CocoaPodsDefaultMap
: setg:CocoaPodsDefaultMap
to0
if you don't want any default maplet g:CocoaPodsDefaultMap = 0 " The default map as as below: " nmap <silent><buffer> <Leader>eb <Plug>(CocoaPodsEditBranch) " nmap <silent><buffer> <Leader>et <Plug>(CocoaPodsEditTag) " nmap <silent><buffer> <Leader>ev <Plug>(CocoaPodsEditVersion) " nmap <silent><buffer> <Leader>dbm <Plug>(CocoaPodsDirectToMaster) " nmap <silent><buffer> <Leader>dlp <Plug>(CocoaPodsDirectToLocal) " nnoremap <silent><buffer> <Leader>pu :PodUpdate<CR> " nnoremap <silent><buffer> <Leader>pnu :PodUpdateNoRepoUpdate<CR> " nnoremap <silent><buffer> <Leader>pi :PodInstall<CR> " nnoremap <silent><buffer> <Leader>pt :PodTrim2NameBranch<CR>
This plugin provides the following Commands & Maps
PodUpdate
: Runpod update
PodUpdateNoRepoUpdate
: Runpod update --no-repo-update
PodInstall
: Runpod install
PodTrim2NameBranch
: Trim pod line to formatpod_name:branch
<Plug>(CocoaPodsEditBranch)
: Edit pod git branch<Plug>(CocoaPodsEditTag)
: Edit pod git tag<Plug>(CocoaPodsEditVersion)
: Edit pod version<Plug>(CocoaPodsDirectToMaster)
: Direct to branch master<Plug>(CocoaPodsDirectToLocal)
: Direct to local path
This plugin is built to make my iOS development workflow more efficient, so it uses the following plugins that I commonly use:
Please give this plugin a star if it if this plugin helps you.