Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Or 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


This 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#L...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: