Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running R inside a buffer in Vim

Tags:

shell

vim

plugins

r

I have used Stata and gVim on Windows for a while now. Recently I have switched to Linux, and I am planning to also change from Stata to R.

A friend of mine is using R and Emacs ESS which seems to work perfect, however i'd rather like to keep using vim. I have installed the vim-r-plugin2, however, i can only send code to a seperate terminal running R. I would much rather split my screen into a buffer running R and one buffer with my .R file, and then send code from one to the other. With ESS in Emacs this seems to work, you can run a terminal/R in a buffer without a problem. I haven't found a way to make this work. The R plugin for vim uses screen, and the only way to open a buffer running a shell I could find is the Conque Shell plugin.

I know that unlike Emacs, Vim is designed to be a simple text editor. However, having R run in a buffer seems just so much more practical.

I hope my problem is understandable, please bear with me I only recently switched to Linux and know virtually nothing about programming besides statistics. Thanks!

like image 690
ilprincipe Avatar asked Sep 11 '10 22:09

ilprincipe


1 Answers

If you do not need to input unicode, you can consider using ConqueShell plugin.

like image 105
ZyX Avatar answered Oct 05 '22 22:10

ZyX