Closed ssiegel closed 8 years ago
Thank you for the patch. Unfortunately I cannot include it because it does not take into account a use case: when typing vim
launches gvim, as it is the case when one uses the vim-veryvisual plugin. In that case WINDOWID
contains the ID of the terminal that launched gvim, not gvim's window.
I added some logic for gVim, I hope this is acceptable now.
I had to do some adjustments to make it work on Ubuntu 14.04. Could you please have a look at the branch ssiegel-use-procfs
and test if it works for you?
Vim does not start the server by default if it is running in a terminal, so we need the fallback. After changing that it works as expected :smiley:
Detect the window id by finding vim's pid (as for tmux), then inspect its environment to get the value of WINDOWID.