Last active
January 2, 2016 02:19
-
-
Save blackbing/8236254 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# {{{ vim-keys.conf | |
# $Id: vim-keys.conf,v 1.2 2010/09/18 09:36:15 nicm Exp $ | |
# | |
# vim-keys.conf, v1.2 2010/09/12 | |
# | |
# 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. This is intended for tmux 1.3, which handles pane selection | |
# differently from the previous versions | |
# split windows like vim | |
# vim's definition of a horizontal/vertical split is reversed from tmux's | |
bind s split-window -v | |
bind v split-window -h | |
# move around panes with hjkl, as one would in vim after pressing ctrl-w | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# 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 < resize-pane -L 1 | |
bind > resize-pane -R 1 | |
bind - resize-pane -D 1 | |
bind + resize-pane -U 1 | |
# bind : to command-prompt like vim | |
# this is the default in tmux already | |
bind : command-prompt | |
# vi-style controls for copy mode | |
setw -g mode-keys vi | |
# }}} | |
set -g default-terminal "screen-256color" # + "tmux -2" => 256 color | |
set -g status-justify left | |
set -g status-interval 15 # 15 sec refresh | |
set -g display-time 3000 | |
set -g status-bg black | |
set -g status-fg white | |
set-window-option -g window-status-current-fg blue | |
set-window-option -g window-status-current-bg yellow | |
set-window-option -g window-status-current-attr default # bright | |
set -g status-left-length 15 | |
set -g status-right-length 65 | |
# unicode | |
setw -g utf8 on | |
set -g status-utf8 on | |
# start window numbering at 1 for easier switching | |
set -g base-index 1 | |
#set -g status-left "#[fg=white,bg=blue] > #I #W < #[default] |" # 0:bash | |
set -g status-left "#[fg=white,bg=blue] ࿔ #(echo $USER) #[default] |" # session-name | |
set -g status-right "#[fg=red,bright][ #[fg=cyan]#H #[fg=red]]#[default] #[fg=yellow,bright]- %Y.%m.%d #[fg=green]%H:%M #[default]#[fg=magenta,bright](load: #(cat /proc/loadavg | cut -d \" \" -f 1,2,3))#[default]" | |
unbind C-b | |
set -g prefix C-a | |
setw -g mode-mouse on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment