summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2016-10-26 16:51:47 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2016-10-26 16:51:47 +0200
commitf7f186fadc4fc25f676e8810910468b0b9dab346 (patch)
treef7cde7923d59291ffd8a5d411e8364b1f297c3ce /vimrc
parent8fcaa193c268043a9c6c5caf027783a0a6b7b15f (diff)
Only use old vim plugin when necessary
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc16
1 files changed, 6 insertions, 10 deletions
diff --git a/vimrc b/vimrc
index eaa034d..8c31a89 100644
--- a/vimrc
+++ b/vimrc
@@ -22,16 +22,9 @@ Plug 'jalvesaq/R-Vim-runtime'
Plug 'jranke/vim-pandoc', { 'branch': 'rmd' }
Plug 'vim-pandoc/vim-pandoc-syntax'
-if !has('nvim')
- Plug 'jcfaria/Vim-R-plugin' " for my vim version 7.4, legacy plugin not maintained by Jakson any more
-else
- Plug 'jalvesaq/Nvim-R'
-endif
-
-call plug#end()
-
-" legacy Vim-R-plugin plugin {{{1
-if !has('nvim')
+if !exists("*job_getchannel")
+ " for vim versions <= 7.4.1453 use the legacy plugin not maintained any more
+ Plug 'jcfaria/Vim-R-plugin', { 'commit': 'd726d619f12a10fb5ac7967d373837735cff60f0' }
"let vimrplugin_vsplit = 0
"let vimrplugin_rconsole_width = 100
@@ -46,12 +39,15 @@ if !has('nvim')
"vnoremap r *@<Esc>:call SendSelectionToR("echo", "down")<CR>
" but this does not work as expected
else
+ Plug 'jalvesaq/Nvim-R'
vmap r <Esc>:call SendSelectionToR("echo", "down")<CR>
"let R_source_args = "print.eval = TRUE"
let R_vsplit = 1
let R_assign = 0
endif
+call plug#end()
+
" R syntax {{{1
let r_syntax_folding = 0
let rmd_syn_hl_chunk = 1

Contact - Imprint