Skip to content

Commit c81db94

Browse files
committed
[docs] about_tmux
1 parent e285d45 commit c81db94

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

doc/about_tmux.rst

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,14 @@ Short cut Action
434434
=================== ====================================================
435435

436436

437-
Recipe (todo): tmux conf to ``hjkl`` commands
437+
Recipe: tmux conf to ``hjkl`` commands, add this to your
438+
``~/.tmux.conf``::
439+
440+
# hjkl pane traversal
441+
bind h select-pane -L
442+
bind j select-pane -D
443+
bind k select-pane -U
444+
bind l select-pane -R
438445

439446
Kill window
440447
-----------
@@ -505,6 +512,33 @@ Depending on your tmux version, there is different options available.
505512
- Status lines
506513
- Short cuts
507514

515+
Vi copypaste
516+
------------
517+
518+
.. code-block:: ini
519+
520+
# Vi copypaste mode
521+
set-window-option -g mode-keys vi
522+
bind-key -t vi-copy 'v' begin-selection
523+
bind-key -t vi-copy 'y' copy-selection
524+
525+
Aggressive resizing for clients
526+
-------------------------------
527+
528+
.. code-block:: ini
529+
530+
setw -g aggressive-resize on
531+
532+
Reload config
533+
-------------
534+
535+
``<Prefix>`` + ``r``.
536+
537+
.. code-block:: ini
538+
539+
bind r source-file ~/.tmux.conf \; display-message "Config reloaded."
540+
541+
508542
509543
Reference
510544
=========

0 commit comments

Comments
 (0)