vim-dispatch
vim-dispatch copied to clipboard
If iTerm2 is open, :Gpush on Macvim opens iTerm tab, then hangs
Using a vanilla install Macvim (build 73) via homebrew. Only plugins installed are pathogen, vim-dispatch, and vim-fugitive.
- Working within a git repo, with a file open, run
:GPush - IF I have iTerm2 open, a new tab opens.
- It is blank.
- Focus remains in Macvim.
- Nothing happens in the iTerm tab, just seems to hang.
- In Macvim, the command line shows
!git push (iterm/?) - No git push actually happens.
- IF I have iTerm closed, the command works as expected.
- The command works as expected from vim running in a terminal.
The culprit seems to be :Make (https://github.com/tpope/vim-fugitive/blob/master/plugin/fugitive.vim#L1577), which is a vim-dispatch thing, where there seems to be some iTerm2 issues anyway.
I have a similar issue.
:Make command works well when executed from MacVim in iTerm. However, when executed from MacVim GUI, it opens an blank iTerm tab and hangs there.
I can confirm it works for me with iTerm2 and MacVim. Digging in will involve looking at the AppleScript in autoload/dispatch/iterm.vim. You can also work around it by removing iterm from g:dispatch_handlers.