A minimalist guide to tmux
medium.com
medium.com
> Ctrl a (a little faster to type, doesn’t conflict with vim
... but conflicts with beginning-of-line emacs-style bindings, widely in use in readline/libedit/zsh.
I'd add stuff too, but I think we need to resist the temptation. The article succeeds in presenting the absolute bare minimum you need to get started. In fact, I think the author chose his features well but used too many words to present them.
If not otherwise configured with stty, it's frequently set up for control flow along with C-q. If you find your terminal freezes after typing C-s, C-q will unfreeze it.
Disable with:
stty -ixon start undef stop undefvim 8 has a built-in terminal.
:terminal ./start-development-server.sh --port 8080
will open a new buffer in a split window that executes the given command line. And it even supports all the regular vim keybindings. :help terminal.txt
for details.(For anyone interested, it looks like only more recent releases of vim 8 have :terminal.)
So it may not be available on $random_rhel6_server, but since the article described the scenario of a development server, I figured that package versions on there should be fairly recent.
[dupe] https://news.ycombinator.com/item?id=15776995 (267 points, 96 comments)
Surprised to see it again so soon -- darn you Medium flexible URLs!
PS. Anyone willing to earn $400 implementing mosh ssh port forwarding https://www.bountysource.com/issues/4471419-ssh-port-forward..., or should I move on to the mentioned alternative https://mistertea.github.io/EternalTCP?
PPS. Bountysource feels sketch: https://hn.algolia.com/?query=bountysource
:D
Nowadays I use C-z: easy to hit with one hand, and easy enough to do C-z C-z if I actually want to suspend something.
See the tmux FAQ: https://github.com/tmux/tmux/wiki/FAQ
# remap prefix from 'C-b' to 'C-a'
Still hate the tmux devs for that default value, but hell there is so much good they did, so I can forgive them that :D bind C-a send-prefix
to your .tmux.conf file will allow you to type C-a twice and still get to the front of the linehttps://github.com/tmux/tmux/wiki/FAQ#why-is-c-b-the-prefix-...
Nevertheless, I think they should have changed that in the release version and configure their dev environment. After all, it is pretty uncommon to run tmux inside screen for most use-cases.
tmux new-session -d [-s <session_name>] <command>
is nohup/dtach on steroids.Ditto goes for scrolling: Native windows scroll more naturally than tmux with mouse support.
1. iTerm2 has tmux integration, a new panel in tmux automatically maps to a new tab in iTerm2 2. You can enter copy/paste mode in tmux.
so much quinning