7 ms·
Thanks for this, just gave tmux a try. Seems fantastic. Tried Version 2.0. Here are the bindings I went for so that it feels more like screen ( what I am used
by ptrincr 9y ago
Thanks for this, just gave tmux a try. Seems fantastic. Tried Version 2.0.
Here are the bindings I went for so that it feels more like screen ( what I am used to ), plus being able to use vi like commands for copy + paste:
vim ~/.tmux.conf
setw -g mode-keys vi
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
unbind C-b
set -g prefix C-a
bind C-a send-prefix
Split screen vertically
ctrl+a %
Split screen horizontally
ctrl+a "
Copy and paste works like...
ctrl+a escape - copy mode
v - enter visual mode to highlight
y - capture text
ctrl+a p - paste into terminal
Seems you can use ctrl+a (release) and arrow keys to flip between panes.
Plus ctrl+a left/right to adjust pane size.
- zipperhead 9y agoYes, getting the key mappings to your liking is key. There are lots of resources available. One good place to start is the online book The Tao of tmux https://leanpub.com/the-tao-of-tmux/read https://leanpub.com/the-tao-of-tmux/read. Using copy mode to navigate the scroll buffer is also a useful feature - you can really cut down the use of a mouse in the terminal.