On 03/12/12 17:53, Christian Brabandt wrote:
>
> This is a problem in the way tmux works. It simply doesn't return and
> Vim waits forever ;(
>
Thank you for making this clear.
I found a way to circumnavigate the problem.
The Python module subprocess works as expected. Therefore you can type
in a vim script:
python << EOF
import subprocess
tmuxHasSession = "tmux has-session -t " + SessionName
if subprocess.call(tmuxHasSession, shell=True):
...
EOF
I was only interested in the return code of the tmux call. So if anybody
is interested in the output of tmux you have to have a look at the other
functions in the subprocess module.
The shell=True seems to be important. With shell=false (the default) it
did not work for me.
So probably tmux needs a shell to run and the vim system() function has
not this functionality (?).
Regards,
Michael
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php