From 9dfe314360de677c3a1d9ee398d59cdb3042508b Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Wed, 15 Apr 2015 15:11:36 +0100 Subject: Added tpope plugins --- vim/vimrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index e5b8f28..0659b0b 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -8,19 +8,20 @@ call vundle#rc() "" Plugins Plugin 'gmarik/vundle' Plugin 'LaTeX-Box-Team/latex-box' -Plugin 'fugitive.vim' Plugin 'gregsexton/gitv' Plugin 'UltiSnips' Plugin 'kien/ctrlp.vim' +Plugin 'tpope/vim-fugitive' Plugin 'tpope/vim-surround' Plugin 'tpope/vim-obsession' Plugin 'tpope/vim-sensible' Plugin 'tpope/vim-scriptease' +Plugin 'tpope/vim-repeat' +Plugin 'tpope/vim-commentary' Plugin 'scrooloose/nerdtree' Plugin 'tommcdo/vim-exchange' Plugin 'unimpaired.vim' Plugin 'Tabular' -Plugin 'tComment' Plugin 'Gundo' Plugin 'altercation/vim-colors-solarized' Plugin 'honza/vim-snippets' -- cgit v1.2.3 From 91cf2a4a6f6575f8f85d9ccb631018057c0468ff Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 17 Apr 2015 09:53:19 +0100 Subject: Reordered plugins --- vim/vimrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 0659b0b..d903e23 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -6,11 +6,6 @@ set rtp+=~/.vim/bundle/vundle/ call vundle#rc() "" Plugins -Plugin 'gmarik/vundle' -Plugin 'LaTeX-Box-Team/latex-box' -Plugin 'gregsexton/gitv' -Plugin 'UltiSnips' -Plugin 'kien/ctrlp.vim' Plugin 'tpope/vim-fugitive' Plugin 'tpope/vim-surround' Plugin 'tpope/vim-obsession' @@ -18,6 +13,11 @@ Plugin 'tpope/vim-sensible' Plugin 'tpope/vim-scriptease' Plugin 'tpope/vim-repeat' Plugin 'tpope/vim-commentary' +Plugin 'gmarik/vundle' +Plugin 'LaTeX-Box-Team/latex-box' +Plugin 'gregsexton/gitv' +Plugin 'UltiSnips' +Plugin 'kien/ctrlp.vim' Plugin 'scrooloose/nerdtree' Plugin 'tommcdo/vim-exchange' Plugin 'unimpaired.vim' -- cgit v1.2.3 From 04f3f3abbd23eacbc5b1e7f77bcc9f4728e5e43a Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 17 Apr 2015 09:54:00 +0100 Subject: Added smart vim-split aware pane switching functionality to tmux --- tmux.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tmux.conf b/tmux.conf index 28d13bb..eda1d93 100644 --- a/tmux.conf +++ b/tmux.conf @@ -12,3 +12,9 @@ set -g @tpm_plugins ' \ set -g @resurrect-strategy-vim 'session' run-shell '~/.tmux/plugins/tpm/tpm' + +is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"' +bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" +bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D" +bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U" +bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R" -- cgit v1.2.3