-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
67 lines (54 loc) · 1.95 KB
/
tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# $Id: vim-keys.conf,v 1.1 2010/01/17 16:24:09 nicm Exp $
#
# vim-keys.conf, v1.0 2010/01/15
#
# By Daniel Thau. Public domain.
#
# This configuration file binds many vi- and vim-like bindings to the
# appropriate tmux key bindings. Note that for many key bindings there is no
# tmux analogue.
# split windows like vim
# vim's definition of a horizontal/vertical split is reversed from tmux's
bind s split-window -v -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}"
# move around panes with j and k, a bit like vim
# as of tmux 1.1, there is no way to move based on pane position (ie, no way to
# move the pane to the right)
bind j select-pane -D
bind k select-pane -U
bind h select-pane -L
bind l select-pane -R
# Make swapping the way vim swaps panes
#bind J select-pane -D \; swap-pane -U
#bind K select-pane -U \; swap-pane -U
#bind H select-pane -L \; swap-pane -U
#bind L select-pane -R \; swap-pane -U
# Make the current pane the only visible
bind o break-pane
# resize panes like vim
# feel free to change the "1" to however many lines you want to resize by, only
# one at a time can be slow
bind -r < resize-pane -L 1
bind -r > resize-pane -R 1
bind -r - resize-pane -D 1
bind -r + resize-pane -U 1
# bind : to command-prompt like vim
# this is the default in tmux already
bind : command-prompt
# change predefined layouts like awesome
bind Enter next-layout
# Reload the source file
bind R source-file ~/.tmux.conf \; display-message "source-file done"
# vi-style controls for copy mode
setw -g mode-keys vi
# allow input of one window in all others
# this is very useful fo ssh-clusters
bind S confirm-before -p "synchronize panes? (y/n)" 'set-window-option synchronize-panes'
# Mausunterstuetzung einschalten
set-option -g mouse on
# Neue Fenster nicht als login-shell starten
set-option -g default-shell /bin/bash
# set-window-option automatic-rename on
# set-option -g set-titels on
# better colors
set -g default-terminal "screen-256color"