make sure $EDITOR is set, or everything breaks
Merge pull request #5 from ysangkok/master

make sure $EDITOR is set