Permalink
Browse files

Updated makes_aliases and added tmux motion shortcuts

  • Loading branch information...
1 parent 9915edd commit d7ad734883c3070fc651b36dd57db8799cde86a6 @mnussbaum committed Jul 18, 2012
Showing with 22 additions and 8 deletions.
  1. +21 −7 .tmux.conf
  2. +1 −1 make_aliases.sh
View
@@ -11,16 +11,30 @@ set-environment TMUX_TITLE yes
set-window-option -g mode-keys vi
setw -g aggressive-resize on
+# 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
-bind l select-pane -R
-bind k select-pane -U
-bind j select-pane -D
+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
+
+bind ^h select-pane -L
+bind ^j select-pane -D
+bind ^k select-pane -U
+bind ^l select-pane -R
-bind < resize-pane -L 2
-bind > resize-pane -R 2
-bind - resize-pane -D 2
-bind + resize-pane -U 2
+# resize panes like vim
+bind < resize-pane -L 3
+bind > resize-pane -R 3
+bind - resize-pane -D 3
+bind + resize-pane -U 3
#set-option -g status-right "#[fg=yellow,bold]#(battery.sh Discharging)#[fg=yellow,bold]#(battery.sh Charging) #[fg=black,default] %d %b %R"
View
@@ -3,7 +3,7 @@ ln -s ~/.dot_configs/.gitconfig ~/.gitconfig
ln -s ~/.dot_configs/.gitignore_global ~/.gitignore_global
ln -s ~/.dot_configs/.offlineimaprc ~/.offlineimaprc
ln -s ~/.dot_configs/.pryrc ~/.pryrc
-ln -s ~/.dot_configs/.pythonrc .pythonrc
+ln -s ~/.dot_configs/.pythonrc ~/.pythonrc
ln -s ~/.dot_configs/.tmux.conf ~/.tmux.conf
ln -s ~/.dot_configs/.vim ~/.vim
ln -s ~/.dot_configs/.vim/.vimrc ~/.vimrc

0 comments on commit d7ad734

Please sign in to comment.