jcfaria/Vim-R-plugin — pull request #9 by azvoleff (2012-07-05 22:42:46+00:00)
Title: Make rplugin_Rgui global.

If rplugin_Rgui is local to the buffer, there is an error on Windows when multiple buffers are open in R (multiple buffers in the same session): when you try to start an R terminal from any buffer other than the first that was opened, an error is thrown ("vim.error: invalid expression) from line 91 of windows.py, as the rplugin_Rgui variable is not defined.

This fix works for me, but there may be a better way of fixing this. Not sure if other code relies on rplugin_Rgui being local to the buffer.