Giter VIP home page Giter VIP logo

Comments (5)

jalvesaq avatar jalvesaq commented on July 3, 2024

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.

MikeDacre avatar MikeDacre commented on July 3, 2024

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.

jalvesaq avatar jalvesaq commented on July 3, 2024

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.

MikeDacre avatar MikeDacre commented on July 3, 2024

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.

jalvesaq avatar jalvesaq commented on July 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.