微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Vim ios 开发插件帮助文档精华


Cocoa.vim

  1. :help cocoa
  2. cocoa.vim uses snipMate to code completion
    • <c-x><c-o>
    • <tab>
  3. useful plugin: objc_matchbracket.vim
  4. :ListMethods
  5. :BuildMethods .h -> .m
  6. look document
    • :CocoaDoc
    • K
  7. Xcode-like mappings
    • <leader>A Alternate between header (.h) and implementation (.m) file
    • K Look 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

  1. :A switches to the header file corresponding to the current file being edited (or vise versa)
  2. :AS splits and switches
  3. :AV vertical splits and switches
  4. :AT new tab and switches
  5. :AN cycles through matches
  6. :IH switches to file under cursor
  7. :IHS splits and switches
  8. :IHV vertical splits and switches
  9. :IHT new tab and switches
  10. :IHN cycles through matches
  11. <leader>ih switches to file under cursor
  12. <leader>is switches to the alternate file of file under cursor (e.g. on switches to foo.cpp)
  13. <leader>ihn cycles through matches

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐