Comments (5)
On Sat, Feb 18, 2012 at 1:11 AM, Mike Dacre
[email protected]
wrote:
I really like the integration with Tmux, but I already use tmux
extensively, and I really don't like the nested tmux sessions, it
screws up my settings and my navigation instincts. Is there any way
to get vim-r-plugin to use an existing tmux/R session? That would
give me vastly more control.
Yes. Are you using the current version on github? You should:
- Start Tmux.
- Start Vim.
- Start R with the \rf shortcut.
Please, let me know if this works ok. I still have to improve the
identification of R pane by Vim. Currently it's hardcoded on %1 and
the Object Browser will send code to the wrong Tmux pane if R is not
on pane %1.
Jakson
from vim-r-plugin.
Thanks for the response,
I just installed the current github version and tried the steps you suggest but I have the same nested tmux issue.
Check out this screenshot: http://www.michaeldacre.com/vim-r-tmux.png
Note: I am using pathogen to manage all my vim plugins, not sure if that could screw anything up.
Thanks!
Mike
from vim-r-plugin.
On Sat, Feb 18, 2012 at 3:18 PM, Mike Dacre
[email protected]
wrote:
I just installed the current github version and tried the steps you
suggest but I have the same nested tmux issue.Check out this screenshot: http://www.michaeldacre.com/vim-r-tmux.png
There are two Tmux status bars. Is this the problem? It doesn't happen
here (Ubuntu Linux, Tmux 1.5, screen plugin 1.5).
What happens when you use the plugin's key bindings to send code from
Vim to R?
Note: I am using pathogen to manage all my vim plugins, not sure if
that could screw anything up.
This should not be a problem. The plugin was adapted to pathogen on
May, 2010.
Jakson
from vim-r-plugin.
I think the issue might be that I was overriding the default tmux settings and using my own tmux conf file, which uses the status bar. Now that I have changed that the status bar isn't there anymore, but my mouse aware setup is no longer working.
I can live with the nested tmux sessions, but my original question was if it would be possible to use an existing tmux session totally. For example, I could open tmux, open R, then open a new tmux pane and open vim in that, then activate the R-plugin and have it work with the existing tmux and R sessions, without creating a new tmux session and a new R session, which is what happens now.
I think this might actually be an issue with the screen plugin rather than the R-plugin, but it would be nice to have, it would make the plugin feel much more integrated - for example I could quit vim without killing the R session.
from vim-r-plugin.
On Sun, Feb 19, 2012 at 1:53 PM, Mike Dacre
[email protected]
wrote:
I think the issue might be that I was overriding the default tmux
settings and using my own tmux conf file, which uses the status bar.
Now that I have changed that the status bar isn't there anymore,
but my mouse aware setup is no longer working.
Please look at the example of tmux.conf in the plugin documentation.
The plugin also creates a tmux.conf at /tmp/r-plugin-yourlogin/tmux.conf
And, please, post suggestions of improvements here if you think they
will work well for most people.
I can live with the nested tmux sessions, but my original question
was if it would be possible to use an existing tmux session totally.
For example, I could open tmux, open R, then open a new tmux pane
and open vim in that, then activate the R-plugin and have it work
with the existing tmux and R sessions, without creating a new tmux
session and a new R session, which is what happens now.
You could try to split an existing Tmux session instead of using many
nested ones. Example: You can start tmux, do
^A:split-window -h
to split the window by a vertical line, start Vim in one of the panes
and start another application in the other...
I think this might actually be an issue with the screen plugin
rather than the R-plugin, but it would be nice to have, it would
make the plugin feel much more integrated - for example I could quit
vim without killing the R session.
Please, read this:
h: g:ScreenShellQuitOnVimExit
Jakson
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.