Weird behaviour with ssh

16 views
Skip to first unread message

stat quant

unread,
May 19, 2017, 2:15:15 AM5/19/17
to Nvim-R
For some reason for nvimr to behave correctly ie: open a split tmux pane on Rstart I need to open the tmux session just before using vim.
As opposed to: if I open a tmux session, then ssh to another box, then open vim and RStart. 
If I do this I cannot get R to open in a split pane, it will open in another distinct window (so the plugin still works but the behaviour is not the one I want).
Is this expected ?
Is there a work around ?

Jakson Alves de Aquino

unread,
May 19, 2017, 6:27:23 AM5/19/17
to Nvim-R
This is the expected behavior. The Vim-R-plugin used to save the current Vim session and, then, start tmux running the saved session and finally quit the original Vim session. This was a very complicated procedure that required many global variables to be saved. Each time that I created a new variable I had to remember of adding it to the saved session. So, I removed the feature. If you don't want to start tmux before Vim, you have to either run R in an external terminal emulator or use Neovim instead of Vim.
Reply all
Reply to author
Forward
0 new messages