How:
Disadvantages to Vim:
- Install macvim,
- Install cocoa.vim and snipMate.vim plugins by Michael Sanders.
- You'll still need to use xCode for a lot of things (find definition, , use Cmd-0 to toggle back to the xCode environment.
- get an app for dividing your screen quickly, i use left 2/3 for xcode and right 2/3 for macvim, with a 1/3 overlap in the middle on my laptop, otherwise 1/2 and 1/2 when plugged into a monitor.
- use : Ctl-x Ctl-o to for auto completion options
- if you get no match on your autoComplete on a method call using bracket syntax then try dot syntax for the correct auto complete
- Cmd-0 to toggle to xCode, Cmd-Shft-R to open console and Cmd-B to build to quickly do a build and see debug output
- Need to look up something quickly? Cmd-0 to toggle to Xcode, Cmd-Alt-Shft-? to open up xcode documentation window
- C-p to show local completion options (matches within currently open buffers)
- set macvim to open files in a new tab in same window
- set folding, nocompat, incsearch, virtualedit and other options in .vimrc according to your preference.
- if you are a fast touch typist, a modal editor like vi allows you to work without even thinking about your input method. your fingers are never required to leave the home keys
- extensive regular expression support and search and replace support
- multiple recordable macros to expedite tasks
- many clipboard buffers to which you can copy or append into
- highly configurable folding mechanism
- cocoa.vim by Michael Sanders provides good text highlighting and workable code completion
- python script compatibility allows you to program template files in python or repetitive actions
- easy cvs/svn/git/hg integration via vscommand.vim
- simple and managable split screening
- fast switches between header/interface files
- fast toggle between macvim and xcode for build/run or documentation lookups
- and a lot more once you customize your vim to your own preferences.
Disadvantages to Vim:
- you must be a touch typist to gain a serious advantage, if you can't type like the wind you gain little.
- you must toggle back to xcode to leverage the very useful 'Find definition' and 'Find in documentation' options.
- its easier to build and run from xcode due to provisioning setup
- you need both xcode and vim, its very difficult if not impossible to use JUST vim
0 意見:
張貼留言