3 ms·
For the vim lovers, this trick is quite good : unbind [ # free the weird binding set-window-option -g mode-keys vi # switch to vi bindings bind Escape co
by gbin 13y ago
For the vim lovers, this trick is quite good :
unbind [ # free the weird binding
set-window-option -g mode-keys vi # switch to vi bindings
bind Escape copy-mode # ctrl-a ESC put your pane in a kind of vi normal mode
bind-key -t vi-copy v begin-selection # start a visual select mode with v like in vim
bind-key -t vi-copy y copy-selection # yank with y
unbind p # free another weird binding
bind p paste-buffer # paste with crtl-a p
- pyre 13y agoHow is p a weird binding? It's a pneumonic for "previous" and works the same as it does in gnu screen, which is tux's "competitor."
- gbin 13y agoindeed, agreed. I only use the prefix number shortcut for that.
- derleth 13y ago> It's a pneumonic for "previous" I'm guessing this is autocorrect, but an autocorrect that knows 'pneumonic' (the Firefox spell-checker doesn't!) but not 'mnemonic' seems even less likely than a person who knows the first word but not the second. Anyway, 'previous' is perhaps less likely to spring to mind than 'back' or 'reverse' or even 'last', each of which would have different mnemonics. ('Last' has a particularly good mnemonic if you keep your hands to the Holy Home Row, which is why vi users, who are most likely to worship at the Altar of the Home Row, can't use it.)
- LesZedCB 13y agoprevious is unambiguous. Last is extremely ambiguous. Last = Nth element or current -1? Similar with back or reverse. Previous means N-1 every time. Also it's a pretty commonly used programmer idiom.