3 ms·
> Ctrl-b is what tmux uses, so you know it's safe Ctrl-b is "back one character" in most apps that use readline (including bash) and emacs. For that reason I
by thayne 6y ago
> Ctrl-b is what tmux uses, so you know it's safe
Ctrl-b is "back one character" in most apps that use readline (including bash) and emacs.
For that reason I change my Tmux prefix to Ctrl+Y (I also think it is more ergonomic).
- lobstrosity420 6y agoBut Ctrl+Y is what I use to scroll up in vim! Ultimately I think all ctrl combinations were taken long before tmux came around, you just set it to the one that annoys you less. Ctrl+a seems to be a popular choice. I personally just leave it on the default.
- phibz 6y agoC-b is what tmux uses because it was developed in screen and and C-a was taken. I always change my tmux config to C-a leader and C-a-a for literal C-a
- philsnow 6y agoC-y is yank though (in both emacs and readline); I definitely use yank more than C-b. I switched my .screenrc to use ^O as the escape key; in vim insert mode it's "take the next keystroke(s) from the normal mode keymap" so you can `^O d t $` from insert mode to delete up the end of the line or whatever. I never use that in vim. I don't even remember what exactly it does in emacs, something that inserts a newline. In readline I think it's "accept-and-...something-else", that I also never use. I usually run a single actual terminal, running a "meta" screen session, with one sub-screen session for each project or environment. The outer screen uses ^Z as the escape key because I hardly ever use this for she'll job control (I have ~infinity screen windows, after all).