aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2019-02-21 09:55:03 +0000
committerJuan J. Martinez <jjm@usebox.net>2022-05-29 22:57:28 +0100
commita402ca8e0ea6d4b05a78661ba9bb55360a8ff53d (patch)
tree21fe561d3fa2b67c5010513720fe39d8039bc839
parent5c2a6658820ec7d037b22cff5f3186d31d1208af (diff)
downloaddotnvim-a402ca8e0ea6d4b05a78661ba9bb55360a8ff53d.tar.gz
dotnvim-a402ca8e0ea6d4b05a78661ba9bb55360a8ff53d.zip
Added tmux conf
-rw-r--r--tmux.conf24
-rw-r--r--tmux.md17
2 files changed, 41 insertions, 0 deletions
diff --git a/tmux.conf b/tmux.conf
new file mode 100644
index 0000000..bbf0e4b
--- /dev/null
+++ b/tmux.conf
@@ -0,0 +1,24 @@
+# use C - a
+unbind C-b
+set-option -g prefix C-a
+bind-key C-a send-prefix
+
+# split panes using | and -
+bind | split-window -h
+bind - split-window -v
+unbind '"'
+unbind %
+
+# switch panes using Alt-arrow without prefix
+bind -n M-Left select-pane -L
+bind -n M-Right select-pane -R
+bind -n M-Up select-pane -U
+bind -n M-Down select-pane -D
+
+# Enable mouse mode (tmux 2.1 and above)
+set -g mouse on
+
+# don't rename windows automatically
+set-option -g allow-rename off
+
+set -g default-terminal "xterm-256color"
diff --git a/tmux.md b/tmux.md
new file mode 100644
index 0000000..cef3651
--- /dev/null
+++ b/tmux.md
@@ -0,0 +1,17 @@
+*Configuration for tmux*
+
+This is not vim related, but I find it very useful so I like to keep it with my
+vim conf.
+
+Link you tmux.conf to the version here with:
+
+```
+ln -s ~/.vim/tmux.conf ~/.tmux.conf
+```
+
+Run tmux with `-u2`, or add an alias to your `~/.bashrc`:
+
+```
+alias tmux="tmux -u2"
+```
+