Comments (7)
I may have this set up incorrectly, but the plugin does not seem to be exhibiting proper behavior (splitting the window) when you are already in a tmux session before starting vim. It splits only if you use the tvim function, but embeds a second tmux session into the first rather than splitting a new window in the first as was the previous behavior with a running tmux. This may be expected behavior, but I would prefer to have the R session in a non-embedded split window.
Good work with the plugin by the way, it is very useful, and is the thing allowing me to continue using vim for R rather than using RStudio.
from vim-r-plugin.
Here, it splits the window as before. The only difference is that after
tmux
vim
I have to quit Vim and type “exit” to finish the Tmux session while after
tvim
the Tmux session finishes when I quit Vim. Note that you should NOT do:
tmux
tvim
from vim-r-plugin.
You are correct, I cannot even get it to reproduce the error I was experiencing yesterday. It must have been in a strange intermediate state since I just upgraded to the new version. Thanks again!
from vim-r-plugin.
Thanks for the feedback. I improved a bit the explanation about tvim. Instead of “start Vim inside a Tmux session” the documentation now says “start a Tmux session running Vim”.
from vim-r-plugin.
I know this is closed, but I don't want to open an issue when it is potentially not a bug.
Does this issue affect the ability of having GVIM open a terminal inside the editor window?
So far every time I start GVIM and press rf the plugin seems to start fine, but the R terminal is always opened externally. The object browser on the other hand opens within the editor window. When using tvim this does not happen.
I've seen screeshots that suggest it is possible to have the R terminal inside gvim's window.
Thanks in advance.
from vim-r-plugin.
It is possible to have R running in a Vim buffer (and, thus, inside GVim), but none of the available options (VimShell, ConqueShell) works smoothly because Vim has some limitations. That is why I removed the support to VimShell and ConqueShell. But if someone wants to use VimShell, ConqueShell or similar plugins, he or she can write the code and source it with the option vimrplugin_source. The old Vim-R-plugin source code can be a starting point.
Neovim is a promising Vim replacement. If people developing neovim do everything that is planed, it will be possible to run R inside Vim as emacs+ess does (or even better). However, I think that the best option is to have Vim and R running independently. To have R running inside Vim you have to write a terminal emulator inside Vim. And I have no doubt that the terminal emulator will have many bugs and limitations. For example, even the already mature terminal emulator of emacs+ess can not run the colorout package and does not emit the SIGWINCH signal that the setwidth package relies on to set R's "width" option.
The Object Browser is just Vim. That is why we can simply split Vim window and run the Object Browser in the newly opened Vim window. However, due to Vim limitations, it is more stable to have the Object Browser running in a separate Vim process (Vim may have problems if it receives messages from R while you are doing some complex editing tasks).
from vim-r-plugin.
Thank you for the detailed answer. I understand your reasoning. While not a solution, at least I know now that the problem is not on my end due to a faulty install of the plugin.
I'll keep an eye on NeoVim's development, and of course will continue using Vim-R-plugin. Thank you for writing and sharing it.
from vim-r-plugin.
Related Issues (20)
- \aa \ae and echo HOT 4
- Sporadic failures to send code chunks to R HOT 6
- vim-r & vim-markdown Rmd syntax highlighting no longer working HOT 13
- omnicompletion not working in .Rmd, .rnw HOT 11
- E364: Library call failed for "SendToRConsole()" HOT 7
- Rhelp is not working with vimpager HOT 4
- tmux settings have changed HOT 12
- \o not working for some cases. HOT 2
- Clear R console input before send R code from vim HOT 4
- ReplaceUnderS() not compatible with vim macros or repeat insert. HOT 4
- Sending command starting with a - (minus) sign HOT 3
- Ignoring Environment Variables on Windows HOT 9
- Running R code in Roxygen example sections does not work for visual selections HOT 12
- To remove extra spaces in vimrplugin_assign_map HOT 2
- tmux -V not available on OpenBSD HOT 2
- Issue with clipboard HOT 2
- [Regression] StartR fails with vim-r 1.2.9 HOT 2
- Vim-R-plugin was replaced by Nvim-R HOT 3
- Start 'tmux' before Vim. The X Window system is required to run R in an external terminal. HOT 1
- Can't see R documentation and plots HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-r-plugin.