Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A little trouble #7

Open
2Niu opened this issue Mar 1, 2018 · 2 comments
Open

A little trouble #7

2Niu opened this issue Mar 1, 2018 · 2 comments

Comments

@2Niu
Copy link

2Niu commented Mar 1, 2018

I install this plug and it works well.
But there is a little trobule, I use NERDTree on the left of vim window,and tarbar on the right,
when I press F5 (or run :sx) ,the out put window closes my NERDTree and tarbar.

And when I run vim on windows 7 (gvim), after hit F5 ,a DOS window pops up,and stuck ,
I hit Enter ,it disappears,then then the output of Python script appears in the bottom window.

How could I handle it ? Thank you!

@ironcamel
Copy link
Owner

But there is a little trobule, I use NERDTree on the left of vim window,and tarbar on the right,
when I press F5 (or run :sx) ,the out put window closes my NERDTree and tarbar.

The issue is the call to only on line 75 https://github.com/ironcamel/vim-script-runner/blob/master/plugin/script-runner.vim#L75
The reason the call to only is necessary is to prevent multiple output windows on the bottom when you hit F5 more than once without closing the bottom window first. One solution is to add logic to explicitly close the bottom window if it exists, instead of calling only in the main buffer. If you want to provide a patch that does this, I would be glad to consider it.

@2Niu
Copy link
Author

2Niu commented Mar 6, 2018

Thank you for your answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants