LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2014, 10:22 AM   #1
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Rep: Reputation: 12
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.
 
Old 01-28-2014, 10:33 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,961

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by abhishekgit View Post
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.
 
Old 01-28-2014, 10:57 AM   #3
abhishekgit
Member
 
Registered: Jan 2012
Location: India
Distribution: Ubuntu, Gentoo, Fedora, Rhel5,openSUSE
Posts: 165

Original Poster
Rep: Reputation: 12
@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
 
Old 01-28-2014, 11:05 AM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,832
Blog Entries: 36

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
Quote:
Originally Posted by abhishekgit View Post
...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
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vim tutorial in 5 minute, learn vi/vim is to know what the letters stand for cheats anish2good Linux - Newbie 1 07-16-2013 01:23 PM
[SOLVED] How to make Vim (scripts) write to stdout? (or, how to use Vim as a filter program?) dedec0 Linux - Software 13 02-04-2013 06:45 AM
LXer: Personalize and Optimize Vim editor using Packtís new Vim 7.2 book LXer Syndicated Linux News 0 05-20-2010 11:20 PM
Switching from vim to vim -g from inside vim iDragoon Linux - Software 4 05-15-2009 12:46 PM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 05:26 PM


All times are GMT -5. The time now is 06:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration