Code Monkey home page Code Monkey logo

Comments (7)

alerque avatar alerque commented on May 29, 2024

Is tmux in your $PATH?

$ which tmux

You realize this should typically be used by starting VIM inside a TMUX session and the plugin will just add a new pane to run jobs in right?

from vimux.

ogmueller avatar ogmueller commented on May 29, 2024

It seems not to be in PATH

$ which tmux
tmux not found

Somehow strange. I haven't changed my .vimrc for a long time and never had this error. Maybe an update to macos BigSur or iTerm2 changed something. Or brew removed it with other dependencies.

Doing a brew install tmux fixed it. Thnx.

from vimux.

gpakosz avatar gpakosz commented on May 29, 2024

I'm hitting this on a computer that doesn't have tmux installed and I don't want to install it there.

Could vimux just skip its initialization when tmux is not present? This would help sharing my Vim configuration with different computers.

from vimux.

alerque avatar alerque commented on May 29, 2024

@gpakosz I'm not sure about "just skip", but I think downgrading this from a hard error that blocks vim startup to a warning that you can move on from would be fine. I'd be happy to accept a PR to that affect.

from vimux.

gpakosz avatar gpakosz commented on May 29, 2024

Not interested if it's a warning 🙂

I'll just work around it by doing

if !executable('tmux')
  let g:loaded_vimux = 1
endif

from plugins/settings/vimux.vim

from vimux.

alerque avatar alerque commented on May 29, 2024

I think a warning is better than an error and would like to see that happen even if it doesn't help your use case. As for default behavior I think the warning will be more broadly useful that a silent failure. The number of people that expect this to work when they install it and yet have issues with it finding tmux (as was the original report in this issue!) is almost certainly higher than those installing the plugin and deliberately not expecting it to work (as in your comment).

Your workaround sounds appropriate for your desired outcome.

from vimux.

anthonybrown avatar anthonybrown commented on May 29, 2024

I'm having the same problem, failed to find executable tmux.
Going to try brew install tmux and see if that fixes it.

from vimux.

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.