summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2020-05-14 17:42:27 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2020-05-14 17:42:27 +0200
commita6dcf08e2d3175266e3209712404342df80d74ab (patch)
tree744173dec199c2a60c18b2fe86a4365cbe595bf0
parent46acb37de2f6911feda9b5d822a89a60f1ec33cf (diff)
,rx for R-devel in Nvim-R, avoid graphical menus
-rw-r--r--Rprofile1
-rw-r--r--vimrc13
2 files changed, 11 insertions, 3 deletions
diff --git a/Rprofile b/Rprofile
index e28b81d..98a26be 100644
--- a/Rprofile
+++ b/Rprofile
@@ -1,5 +1,6 @@
options(pdfviewer="okular")
options(browser="firefox")
+options(menu.graphics=FALSE)
# R package repositories
local({
diff --git a/vimrc b/vimrc
index 687c712..f789338 100644
--- a/vimrc
+++ b/vimrc
@@ -1,5 +1,5 @@
" vimrc of Johannes Ranke
-" Last Change: Wed Apr 08, 2020 at 10:09 AM +0200
+" Last Change: Mon May 11, 2020 at 08:29 AM +0200
" default settings (much is handled by tpope/sensible) {{{1
set ts=2
set sw=2
@@ -46,7 +46,7 @@ Plug 'scrooloose/nerdtree'
" Bracketed paste
Plug 'ConradIrwin/vim-bracketed-paste'
-" R plugin {{{2
+" R plugin {{{1
Plug 'jalvesaq/Nvim-R'
"Plug '~/git/Nvim-R', { 'branch': 'rstudio' }
vmap r <Esc>:call SendSelectionToR("echo", "down")<CR>
@@ -58,7 +58,14 @@ let R_rconsole_width = 80
"let R_in_buffer = 0
"let RStudio_cmd = '/usr/bin/rstudio'
Plug 'mllg/vim-devtools-plugin'
-" 2}}}
+
+" The following is adapted from issue https://github.com/jalvesaq/Nvim-R/issues/476
+function StartRdevel()
+ let g:R_path = '~/svn/R/r-devel/build/bin'
+ call StartR("R-devel")
+endfunction
+
+nmap ,rx :call StartRdevel()<CR>
call plug#end()

Contact - Imprint