commit 6af28534ba57cc795100d4e3e74b373a123f058d parent 8cd5e75585e9110b6970e6af8a025fb331455274 Author: Xiaodong Xu <[email protected]> Date: Sat Jul 7 19:23:55 +0800 Add copy mode bindkeys Diffstat:
_tmux.conf | | | 8 | +++++++- |
diff --git a/_tmux.conf b/_tmux.conf @@ -45,6 +45,12 @@ bind ^e last # select the last window (prefix Ctrl+e) bind q killp # kill pane (prefix q) bind ^q killw # kill window (prefix Ctrl+q) +# copy mode +bind Escape copy-mode # enter copy mode (prefix Escape) +bind ^p pasteb # paste buffer (prefix p) +bind -t vi-copy v begin-selection # select (v) +bind -t vi-copy y copy-selection # copy (y) + # app bind ! splitw htop # htop (prefix !) bind m command-prompt "splitw 'exec man %%'" # man (prefix m) @@ -53,7 +59,7 @@ bind * command-prompt "splitw 'exec perldoc -t -v %%'" # perl var (prefix *) bind % command-prompt "splitw 'exec perldoc -t %%'" # perl doc (prefix %) bind / command-prompt "splitw 'exec ri %%'" # ruby doc (prefix /) -# reload config +# reload config (prefix r) bind r source ~/.tmux.conf \; display "Configuration reloaded!" #-- statusbar --#