Cocoa.vim
:help cocoa- cocoa.vim uses snipMate to code completion
<c-x><c-o><tab>
- useful plugin: objc_matchbracket.vim
:ListMethods:BuildMethods.h->.m- look document
:CocoaDocK
- Xcode-like mappings
<Leader>AAlternate between header (.h) and implementation (.m) fileKLook up documentation for word under cursor<d-m-up>equal<Leader>A<d-r>Build & Run (Go)<d-cr>CMD-R<d-b>Build<shift-k>Clean<d-0>Go to Project<d-2>:ListMethods<F5> (in insert mode)Show omnicompletion menu<d-/>Comment out line<d-[>Decrease indent<d-]>Increase indent
a.vim
:Aswitches to the header file corresponding to the current file being edited (or vise versa):ASsplits and switches:AVvertical splits and switches:ATnew tab and switches:ANcycles through matches:IHswitches to file under cursor:IHSsplits and switches:IHVvertical splits and switches:IHTnew tab and switches:IHNcycles through matches<Leader>ihswitches to file under cursor<Leader>isswitches to the alternate file of file under cursor (e.g. on switches to foo.cpp)<Leader>ihncycles through matches

本文介绍了Cocoa.vim插件及其与CocoaDocK结合使用时的高效代码辅助技巧,包括代码完成、文档查找、文件切换与编辑等操作,旨在提升Objective-C和Swift开发者的编程效率。
917

被折叠的 条评论
为什么被折叠?



