VSplitInSimulator() vim iOS development

May 6, 2011

Here's a vim function which vsplits on the file in the current buffer... except, the split contains the copy installed in the iOS simulator.

I use it when I need to guess-and-check on screen layouts and such. Just be sure to copy the contents back into your project.

 function! VSplitInSimulator()
     execute "bel vsplit " . escape(findfile(expand("%:t"), "/Users/jason/Library/Application\\ Support/iPhone\\ Simulator/**1/Applications/**"), ' \')

Use like so:

 :call VSplitInSimulator()

(or create a command)

Tags: fixme