Vimperator also has this by default (^i triggers it I believe). Then you never have to have the disorientation of leaving a vim environment :-)
One small caveat: i use macvim, it opens a new window in macvim, i close/sync it with :wq. Any idea how I can have it so it jumps back to the firefox window instead another macvim window?
mvim -f --nomru -c "au VimLeave * !open -a Terminal"'
for refocusing the terminal after editing a commit message. Think it'll work fine if you change Terminal to Firefox.
The --nomru is to make sure the file isn't added to the recently edited files list, which is also helpful.set editor='mvim --nomru -f +<line> +"sil! call cursor(0, <column>)" <file> -c "au VimLeave * !open -a Firefox"'