Skip to content

Commit

Permalink
Add endwise, gitgutter, and tmux-navigator
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Clark committed Oct 28, 2013
1 parent 98a4d43 commit 23dcc7e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,12 @@
[submodule "vim/bundle/emmet"]
path = vim/bundle/emmet
url = https://github.com/mattn/emmet-vim.git
[submodule "vim/bundle/tmux-navigator"]
path = vim/bundle/tmux-navigator
url = https://github.com/christoomey/vim-tmux-navigator
[submodule "vim/bundle/gitgutter"]
path = vim/bundle/gitgutter
url = git://github.com/airblade/vim-gitgutter.git
[submodule "vim/bundle/endwise"]
path = vim/bundle/endwise
url = https://github.com/tpope/vim-endwise.git
7 changes: 7 additions & 0 deletions tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,11 @@ set -g default-shell /bin/zsh
# Load powerline
source-file ~/.dotfiles/vim/bundle/powerline/powerline/bindings/tmux/powerline.conf

# Smart pane switching with awareness of vim splits
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim$' && tmux send-keys C-h) || tmux select-pane -L"
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim$' && tmux send-keys C-j) || tmux select-pane -D"
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim$' && tmux send-keys C-k) || tmux select-pane -U"
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim$' && tmux send-keys C-l) || tmux select-pane -R"
bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim$' && tmux send-keys 'C-\\') || tmux select-pane -l"

# vim: ft=tmux
1 change: 1 addition & 0 deletions vim/bundle/endwise
Submodule endwise added at 71a75f
1 change: 1 addition & 0 deletions vim/bundle/gitgutter
Submodule gitgutter added at 878c34
1 change: 1 addition & 0 deletions vim/bundle/tmux-navigator
Submodule tmux-navigator added at 1c32f8

0 comments on commit 23dcc7e

Please sign in to comment.