Some tools for writing Cocoa with Vim etc.
JavaScript Ruby VimL
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
js
pkg
scripts
NOTES
README.md
Rakefile
UISplitViewControllerDelegateProtocol.html
cocoa_tools.gemspec
filetree.txt
find_apple_refs.rb
html_page.txt
index.html
nsarray.html
pages.rb
pages.txt

README.md

cocoa_tools

Just a place I will save the VimScript functions and Ruby scripts I want to write from time to time to make Cocoa development a little more efficient.

Install Ruby Gem

gem install cocoa_tools

Ruby commands

cocoa strip-comments [files]

e.g. cocoa strip-comment *.{h,m}

strips the comment clutter that gets generated by default at the top of your code files.

Install VimScript

Copy scripts/cocoa_tools.vim to ~/.vim/scripts.

And then put this line in your .vimrc:

autocmd BufNewFile,BufRead *.[mh] source ~/.vim/scripts/cocoa_tools.vim

Vim Functions

<leader><leader> switches to alternate file (header to implementation or reverse). Assumes alternate files are in the same directory.

More functions will be added from time to time.