Live data from Hacker News

Using Vim as a Python IDE

liuchengxu.org

1–10 of 158 posts

Re: Using Vim as a Python IDE

#4
post #2

I keep seeing tmux mentioned recently. Can someone eli5 what it does and why it's useful?

A terminal mux. Mux is short for multiplexer, which chooses between different inputs. It is a tool for running keeping multiple terminal sessions open at the same time. These sessions can be attached and detached from, which is often helpful when working on a remote machine you may want to access from different work stations.

Screen is a similar program.

Re: Using Vim as a Python IDE

#6
post #2

I keep seeing tmux mentioned recently. Can someone eli5 what it does and why it's useful?

tmux is a terminal multiplexer - if you have ever used the `screen` command you already know what it is.

I use a macbook pro with iterm2, and I prefer to use a terminal multiplexer instead of tabs or the native screen split of iterm2.

If you ssh remote boxes a lot, it is very useful because you will not lose your session in case of an occasional disconnection.

Re: Using Vim as a Python IDE

#7
post #2

I keep seeing tmux mentioned recently. Can someone eli5 what it does and why it's useful?

It also allows you to "split" your terminal into multiple tabs, panes and windows, which makes it easy to hop back and forth between sessions in multiple environments. As others have said though the killer feature really is that you can run it on a remote machine and attach and detach at will.

Re: Using Vim as a Python IDE

#8
post #2

I keep seeing tmux mentioned recently. Can someone eli5 what it does and why it's useful?

Most of the other comments mention that you can split your screen into tabs and panes. But by far the most important feature of gnu-screen or tmux is the ability to have a shell session running even when you're not logged in. So you can use tmux to start a shell session and run a script(say a command line IRC client) and leave it running. Next you'll just 'detach' from your tmux session and can logout. Your irc client or any number of scripts you started from your tmux session will still be running. You can relogin later and 'attach' to that session and you'll continue where you left off. Infact you can start a tmux session on the server in the office, detach/logout and go home and attach to the same exact screen from home, that you left in the office.

Not to mention you can share your command line shell session/screen with other people!!

Re: Using Vim as a Python IDE

#10
post #6
post #2

I keep seeing tmux mentioned recently. Can someone eli5 what it does and why it's useful?

tmux is a terminal multiplexer - if you have ever used the `screen` command you already know what it is. I use a macbook pro with iterm2, and I prefer to use a terminal multiplexer instead of tabs or the native screen split of iterm2. If you ssh remote boxes a lot, it is very useful because you will not lose your session in case of an occasional disconnection.

Iterm2 also has a nice tmux integration. You can connect to a session but use native tabs and panes. It even works on remote servers over ssh. You just add a '-CC' arg. (You may also have to enable it in the prefs, don't remember for sure)
Post reply on HN