6 ms·
Here's mine: https://github.com/olalonde/dotfiles/blob/master/tmux.conf https://github.com/olalonde/dotfiles/blob/master/tmux.conf One tweak I can't live witho
by olalonde 12y ago
Here's mine: https://github.com/olalonde/dotfiles/blob/master/tmux.conf https://github.com/olalonde/dotfiles/blob/master/tmux.conf
One tweak I can't live without is having the same key bindings to seamlessly switch between tmux panes and Vim split windows. (https://gist.github.com/mislav/5189704 https://gist.github.com/mislav/5189704)
TPM is also really useful for managing tmux plugins https://github.com/tmux-plugins/tpm https://github.com/tmux-plugins/tpm.
My prefix key is Ctrl-Space. It's very convenient to press on the keyboard, I'm surprised to not see it used more widely (maybe because it's commonly bound to some OS utilities?).
- jbnicolai 12y agoI use <C-s> myself, but <C-Space> works just as well I suppose. Not bound to any OS utilities on OS X afaict. Thank you so much for pointing me towards that vim+tmux gist!
- danieloaks 12y agoI use <C-s> for my local machine, and I make the servers I login to use <C-a>. I bind the caps-lock key to ctrl, so it works out pretty well, and lets me work with both local and remote contexts at the same time fairly nicely.
- saidajigumi 12y ago> One tweak I can't live without is having the same key bindings to seamlessly switch between tmux panes and Vim split windows. YES, THIS! Setting up directional pane navigation to work with both tmux and vim panes as first-class entities was a huge workflow boon for me as well. It was a significant change that helped kick my setup over into vim+tmux+zsh as IDE vs. merely a collection of separate parts. It's worth noting that some relevant bits of @mislav's stuff has been packaged up nicely as a Vim plugin: https://github.com/christoomey/vim-tmux-navigator https://github.com/christoomey/vim-tmux-navigator I also just noted that @tarruda (of neovim fame) chimed in on @mislav's gist with his own independently created version of the Vim-side of things. It looks worth comparing some of the implementation details from @tarruda's work, he's done some stuff to eliminate redraws in Vim, etc.
- olalonde 12y ago> It was a significant change that helped kick my setup over into vim+tmux+zsh as IDE vs. merely a collection of separate parts. Same thing here :) I also set `tmux attach -t base || tmux new -s base` as my start command in iTerm which kind of forces me to use tmux windows/panes/sessions instead of iTerm tabs. It took a while to lose the habit of hitting `cmd-t` but was definitely worth it. The thing that sucks now is that I'm really not sure which parts of my environment can be optimised further other than learning new Vim commands :)
- saidajigumi 12y agoHeh, I have something similar, with a tmux session-start script[1] that's the first thing run by my default iTerm windows. It displays and lets me select from existing sessions via prompt tab completion. Or I can just enter a new session name at the prompt. In iTerm, this would be a start command of: login -fp YOUR_USERNAME /Path/To/local/bin/mux --prompt Or used directly from a normal command line (with zsh completion [2]) as: mux <session_name> Apologies to tmuxinator users for conflicting with 'mux'; obviously feel free to rename it. This is really just a part of my personal setup vs. a formally published utility, and I don't use tmuxinator. [1] https://github.com/jwhitley/tilde-local/blob/master/local/bin/mux https://github.com/jwhitley/tilde-local/blob/master/local/bi... [2] https://github.com/jwhitley/zshrc/blob/master/.zfunctions/_mux https://github.com/jwhitley/zshrc/blob/master/.zfunctions/_m...
- joepvd 12y agoHonest question: Is there any benefit of using tmux over a proper tiling window manager? Or, why would I want to delegate some of the window manager tasks to a terminal emulator?
- jwhitlark 12y agoYes, there's lots of value to tmux outside of "window management", even if you only use it locally. That said, lots of the value is using it remotely.
- 12y ago
- foobarqux 12y agoC-Space sets the mark in emacs, which is a regularly used operation.