LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Using Vim with R (https://www.linuxquestions.org/questions/linux-newbie-8/using-vim-with-r-4175492861/)

abhishekgit 01-28-2014 09:22 AM

Using Vim with R
 
Hello everyone,
I am trying to setup R with vim on my ubuntu 12.04 LTS. These are the things I have done so far
1) Installed latest R software
2) Installed Vim-R-plugin
3) enabled Vim-R plugin successfully.
The next thing that is instructed in the manual is to open a *.R file in vim and start an R session by typing \rf. I tried typing it in the command mode. nothing happens. Any help will be appreciated. Thank you.

TB0ne 01-28-2014 09:33 AM

Quote:

Originally Posted by abhishekgit (Post 5106803)
Hello everyone,
I am trying to setup R with vim on my ubuntu 12.04 LTS. These are the things I have done so far
1) Installed latest R software
2) Installed Vim-R-plugin
3) enabled Vim-R plugin successfully.
The next thing that is instructed in the manual is to open a *.R file in vim and start an R session by typing \rf. I tried typing it in the command mode. nothing happens. Any help will be appreciated. Thank you.

If the entire problem description you've given us is "nothing happens"...what do you think we'll be able to tell you from that? You don't tell us what manual you're looking at, where you got the software, how you installed the plugin, what message(s) you got when you did that, or what you're EXPECTING to have happen.

Without details, there's little we can tell you.

abhishekgit 01-28-2014 09:57 AM

@TBOne. Thank you for the quick response. Okay..
I am referring this manual
According to which, I have installed
Quote:

(1) Installed a current version of vim (version 7.3 or higher). Most Unix/Linux operating systems come with vim pre-installed.


(2) Installed a recent version of the R software.


(3) Installed a recent version of tmux (version 1.6 or higher)


(4) Downloaded the screen.vim plugin and then install it from within vim and extracted as instruced

(5) Installed the latest version of Vim-R-Plugin from Ubuntu software centre.
The next thing mentioned is to just edit an R file in the vim and press F2 key or type \rf. The expected thing to happen after this is opening of an R console. The tmux window is supposed to split with an R console window in the right pane which is not happening.

The section of my ~/.vimrc says

Quote:

let vimrplugin_vimpager = "no"
"set expandtab
set shiftwidth=4
set tabstop=8
" start R with F2 key
map <F2> <Plug>RStart
imap <F2> <Plug>RStart
vmap <F2> <Plug>RStart
" send selection to R with space bar
vmap <Space> <Plug>RDSendSelection
" send line to R with space bar
nmap <Space> <Plug>RDSendLine

sag47 01-28-2014 10:05 AM

Quote:

Originally Posted by abhishekgit (Post 5106826)
...According to which, I have installed...

You're assuming you did those install steps correctly. What did you do to accomplish those steps? *How* did you install it? We're not asking "how to install XYZ"; we're asking how did *you* install XYZ?

SAM


All times are GMT -5. The time now is 01:33 PM.