vim-dispatch icon indicating copy to clipboard operation
vim-dispatch copied to clipboard

If iTerm2 is open, :Gpush on Macvim opens iTerm tab, then hangs

Open jasonschock opened this issue 10 years ago • 2 comments

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.

jasonschock avatar Mar 08 '15 06:03 jasonschock

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.

Domon avatar Apr 09 '15 03:04 Domon

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.

tpope avatar Apr 13 '15 19:04 tpope