3 ms·
Awesome, didn't realize it worked in pentadactyl as well. One small caveat: i use macvim, it opens a new window in macvim, i close/sync it with :wq. Any idea h
by bosie 13y ago
Awesome, didn't realize it worked in pentadactyl as well.
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?
- Tyr42 13y agoI found this on the MacVim wiki. 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.
- bosie 13y agoIt does, thank you. For others, this is my solution for now: set editor='mvim --nomru -f +<line> +"sil! call cursor(0, <column>)" <file> -c "au VimLeave * !open -a Firefox"'