Tuesday, May 26, 2020

TMUX

.tmux.conf

source /usr/share/powerline/bindings/tmux/powerline.conf
set -g mouse on
set -g history-limit 30000

For the mouse work properly using Vim inside Tmux

In your .vimrc add:

set ttymouse=xterm2
set mouse=a


Atalhos TMUX

set -g status off

Type in all panes at same time
ctrl + b   : setw synchronize-panes on

ctrl + b z   maximize current pane

ctr + b t    show a clock, it can be used to ignore typing when in syncronize-panes on

Ctrl+b " — split pane horizontally.
Ctrl+b % — split pane vertically.
Ctrl+b arrow key — switch pane.
Hold Ctrl+b, don’t release it and hold one of the arrow keys — resize pane.
Ctrl+b c — (c)reate a new window.
Ctrl+b n — move to the (n)ext window.
Ctrl+b p — move to the (p)revious window.
Other thing worth knowing is that scrolling is enabled by
Ctr+b  Alt (arrow)  - resize
          Repeat Alt(arrow) - resize more times
Ctr+b Esc (arrow)  - resize
          Repeat Alt(arrow) - resize more times
Ctr+b Option (arrow)  - resize
          Repeat Option(arrow) - resize more times

C-b [    Start scroll mode, so press Arrow up or Page up

q   Exit scroll mode

C-b x          kill the current pane

C-b q          display pane numbers for a short while

C-b {          move the current pane to the previous position
C-b }          move the current pane to the next position
C-b C-o        rotate window ‘up’ (i.e. move all panes)
C-b M-o        rotate window ‘down’
C-b !          move the current pane into a new separate
               window (‘break pane’)
C-b :move-pane -t :3.2
               split window 3's pane 2 and move the current pane there


C-b c          create a new window
Switch between windows:
C-b 1 ...      switch to window 1, ..., 9, 0
C-b 9
C-b 0
C-b p          previous window
C-b n          next window
C-b l          ‘last’ (previously used) window
C-b w          choose window from a list

No comments:

Blog Archive