3 ms·
with vim, NERDTree, ack, and gem edit: once you `gem edit` and the directory list opens, go to the directory listing (e.g. /Users/you/.rvm/gems/ruby-1.9.2-p136/
by LiveTheDream 16y ago
with vim, NERDTree, ack, and gem edit: once you `gem edit` and the directory list opens, go to the directory listing (e.g. /Users/you/.rvm/gems/ruby-1.9.2-p136/gems/twitter-1.1.1/) and type "cd". This changes your current working directory to the gem root, which in turn allows you to `:Ack some_text` from the gem root which is very useful.
- snprbob86 16y agoOr create a little script to launch your editor in the right directory: $ echo $GEMEDITOR editgem.sh $ cat ~/bin/editgem.sh #!/bin/sh cd $1 && mvim $1
- lmarlow 16y agoThis is no longer necessary since version 1.0, it now opens your editor from the gem's directory. https://github.com/lmarlow/gemedit/blob/master/History.txt#L4 https://github.com/lmarlow/gemedit/blob/master/History.txt#L...