Quick post for anyone that wants to open things like git rebase master -i
or git commit
in RubyMine instead of vim.
In Rubymine:
Tools -> Create Command-line Launcher (/usr/local/bin/mine)
This will let you do mine .
in the command line when in a project directory/file to open it, or you can use mine path/to/file
to open a specific file.
Then open up your gitconfig
vi ~/.gitconfig
and add
[core]
editor = mine --wait
Now, when you run things like git commit
it will open up a file in rubymine, allow you to edit it and then when you close the file it will continue.