diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2016-10-26 16:51:47 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2016-10-26 16:51:47 +0200 |
commit | f7f186fadc4fc25f676e8810910468b0b9dab346 (patch) | |
tree | f7cde7923d59291ffd8a5d411e8364b1f297c3ce | |
parent | 8fcaa193c268043a9c6c5caf027783a0a6b7b15f (diff) |
Only use old vim plugin when necessary
-rw-r--r-- | vimrc | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -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 |