Change dir for vim editor

Change the working directory before opening the path helps vim editor set the current path.

Similarly to what bundler does [here](https://github.com/bundler/bundler/blob/master/lib/bundler/cli/open.rb#L16).