Pan, Jia-chiun/潘家群
2009-Nov-03 08:59 UTC
[R] Run R code by Vim-R-plugin (How do I to run two or more programs at the same time)?
Dear list, I use R on Ubuntu 9.04 by Vim editor with vim-R-plugin. I want to use Vim to run two R programs A.R and B.R. At beginning, I sent A.R to R prompt by pressing "\rf" and "F5" on my keyboard, and it works well. Meanwhile, I want to sent another file B.R to another R window. When I press "\rf", the R window shows up and still runs A.R. How could I run B.R in another R window by using vim-R-plugin? regards, Jia-Chiun Pan
Jakson A. Aquino
2009-Nov-03 11:28 UTC
[R] Run R code by Vim-R-plugin (How do I to run two or more programs at the same time)?
On Tue, Nov 03, 2009 at 04:59:30PM +0800, Pan, Jia-chiun/??? wrote:> I use R on Ubuntu 9.04 by Vim editor with vim-R-plugin. I want to use > Vim to run two R programs A.R and B.R. At beginning, I sent A.R to R > prompt by pressing "\rf" and "F5" on my keyboard, and it works well. > Meanwhile, I want to sent another file B.R to another R window. When I > press "\rf", the R window shows up and still runs A.R. > > How could I run B.R in another R window by using vim-R-plugin?You may put the following line in your vimrc: let g:vimrplugin_nosingler = 1 Then, each Vim buffer will start its own R process.