Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to do R scripts in Gvim. I downloaded a zip file called vim-r-plugin-0.9.6.zip Then what?

share|improve this question
    
Presumed homepage – Eroen Apr 16 '12 at 22:29
up vote 1 down vote accepted

Documentation

  1. Installation

...

Make a backup of your ~/.vim directory because existing files will be replaced. Please, look at |r-plugin-files| to see the list of files.

3.2. Operating system specific instructions

...

3.2.1. Unix (Linux, OS X, etc.)

Uncompress the archive:

unzip vim-r-plugin-*.zip -d ~/.vim

Start Vim and build the tags file for this document (and others that eventually are in the same directory):

:helptags ~/.vim/doc

Afterwards:

3.1. General instructions I

...

You need to activate plugins and indentation according to 'filetype'. You should have at least the following options in your |vimrc|:

set nocompatible
syntax enable
filetype plugin on
filetype indent on

"Your vimrc" is generally ~/.vimrc even for gvim, as @garyjohn points out.

share|improve this answer
1  
"Your vimrc" is generally ~/.vimrc, even for gvim. The only reason to use ~/.gvimrc is to configure something for only gvim and not vim, and even that can be done within ~/.vimrc. – garyjohn Apr 16 '12 at 22:51
    
~/.vim -> No such file or directory – AWE Apr 16 '12 at 22:59
    
mkdir ~/.vim, then. – Eroen Apr 16 '12 at 23:06
    
Even had a problem with that earlier today but now no problem. Upvote for simplicity if I could. – AWE Apr 16 '12 at 23:22
    
What do you mean with ":helptags ~/.vim/doc"? Answer like I am your greatgreatgrandparent. – AWE Apr 16 '12 at 23:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .