I have just set up the Nvim-R plugin for Neovim to send lines of code from an .R-file opened with Neovim to a terminal inside a tmux session.Previously, I have worked with its predecessor Vim-R, which is no longer being maintained. In the old Vim-R, it was easy to send a visually selected block of code to the terminal by pressing the r key while in visual mode after adding the following line to my .vimrc:let g:vimrplugin_map_r = 1However, this feature seems to be deprecated in the new Nvim-R-plugin. As a workaround I have tried to add the following line to my .vimrc:vmap <Space> <Plug>RDSendSelection This actually allows me to send a visually selected section to the terminal, however, it always includes the next non-empty line after the selection, which is irritating. This is especially so, because it even ignores multiple blank lines.How can I modify this behavior?
Visual selection in Nvim-R plugin sends one line too much to terminal
terminal;neovim;tmux