Questions tagged [vim-r]

10 questions
9
votes
1 answer

Disable underscore "_" shortcut inserting "<-" in Vim R plugin

By default, the Vim-R-plugin inserts <- whenever I type or paste an underscore _. This creates problems when I paste stuff like geom_bar, which becomes geom <- bar. Is there a way to turn this short-cut off? I tried looking at the manual (scroll…
user1994702
6
votes
1 answer

Integrate Vim-R-plugin with remote ssh-byobu session?

I am following the inspiring example here to setup Vim for R development. One difference is that I am running Vim and R on a remote server via ssh session. And this ssh starts byobu, which has tmux started automatically whenever I login. What I want…
biocyberman
  • 5,675
  • 8
  • 38
  • 50
3
votes
1 answer

Finding config file (vimrc?) for VimR OSX

For the VimR OSX app, I want to change the default vim settings (like default colorscheme, or always having :set number), and read online that there's a vimrc file that should be changed, but for some reason I just can't find it on my computer. Do…
Eric
  • 53
  • 1
  • 4
2
votes
1 answer

Calling ssh with system in R shell eats subsequent commands

My workflow is to send commands from an emacs buffer to an R session in emacs via the ESS package. a=0; system("ssh remotehost ls") a = a+1; When I run the three lines above in rapid succession (i.e. submit them to the R buffer), the value of a…
DavidR
  • 810
  • 2
  • 8
  • 16
2
votes
1 answer

why can't I type \rf to start R in vim after install the Vim-R-plugin?

I install the vim-r-plugin and at the last step followed this: Start Vim again and edit an R script. Type rf to start R and run the command below to get help configuring ~/.Rprofile, ~/.vimrc, ~/.tmux.conf, and ~/.bashrc (the…
David Z
  • 6,641
  • 11
  • 50
  • 101
1
vote
1 answer

What is the "--servername" in "vim --servername VIM test.R"?

I just installed the vim-r-plugin on a Linux server and I found this issue (see below figure) prompted from the R console window (vimcom: Did you pass the --servername argument to Vim? ...) when I typed "\rf": To solve the issue I followed the…
David Z
  • 6,641
  • 11
  • 50
  • 101
1
vote
1 answer

Running remote R session from the local instance of vim

I am using vim-r-plugin to send commands from vim to a running R session (and get back info about object list and auto-completions). My aim is to get communication between local vim and remote session of R. I manged to send commands to R with…
Karolis Koncevičius
  • 9,417
  • 9
  • 56
  • 89
0
votes
1 answer

Nvim - I don't understand how to change the options of this plugin

https://raw.githubusercontent.com/jalvesaq/Nvim-R/master/doc/Nvim-R.txt Section 6 of that document, ctrlF + Nvim-R-options I'm new to vim, not sure what to do with that information. I want to disable |R_assign|, or possibly reverse the way it works…
20salmon
  • 31
  • 5
0
votes
1 answer

Vim-R plugin shortcut to execute dev.off()

I'm often playing around with par() png() and so on, and then I often need to manually execute a random line with dev.off() in order to reset all my graphical parameters. Looking at the doc I can't find a shortcut that would allow me to do it…
Simon C.
  • 1,058
  • 15
  • 33
0
votes
0 answers

vim-r tmux scrolling not working properly

A few months ago I set up the combination of Vim-R-plugin+tmux on my macbook air as well as scrolling (using MouseTerm inside SIMBL). All this works perfectly fine; In particular, the scrolling works well both in the vim editor and in the adjacent R…