this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add tmux-navigator and Vimux plugins

+30 -11
+8 -6
packages.json
··· 22 22 "latex": { "type": "git", "url": "https://github.com/lervag/vim-latex.git" }, 23 23 "multiple-cursors": { "type": "git", "url": "https://github.com/terryma/vim-multiple-cursors.git" }, 24 24 "numbers": { "type": "git", "url": "https://github.com/myusuf3/numbers.vim.git" }, 25 - "rails": { "type": "git", "url": "https://github.com/tpope/vim-rails.git" }, 26 25 "racer": { "type": "git", "url": "https://github.com/phildawes/racer.git", "build": "cargo build --release" }, 26 + "rails": { "type": "git", "url": "https://github.com/tpope/vim-rails.git" }, 27 27 "rbenv": { "type": "git", "url": "https://github.com/tpope/vim-rbenv.git" }, 28 28 "repeat": { "type": "git", "url": "https://github.com/tpope/vim-repeat.git" }, 29 29 "rhubarb": { "type": "git", "url": "https://github.com/tpope/vim-rhubarb.git" }, 30 30 "rust": { "type": "git", "url": "https://github.com/rust-lang/rust.vim.git" }, 31 31 "sensible": { "type": "git", "url": "https://github.com/tpope/vim-sensible.git" }, 32 32 "slim": { "type": "git", "url": "https://github.com/slim-template/vim-slim.git" }, 33 + "solarized": { "type": "git", "url": "https://github.com/altercation/vim-colors-solarized.git" }, 34 + "supertab": { "type": "git", "url": "https://github.com/ervandew/supertab.git" }, 33 35 "surround": { "type": "git", "url": "https://github.com/tpope/vim-surround.git" }, 34 - "supertab": { "type": "git", "url": "https://github.com/ervandew/supertab.git" }, 35 36 "swapit": { "type": "git", "url": "https://github.com/mjbrownie/swapit.git" }, 36 37 "syntastic": { "type": "git", "url": "https://github.com/scrooloose/syntastic.git" }, 37 - "undotree": { "type": "git", "url": "https://github.com/mbbill/undotree.git" }, 38 - "unimpaired": { "type": "git", "url": "https://github.com/tpope/vim-unimpaired.git" }, 39 - "unite": { "type": "git", "url": "https://github.com/Shougo/unite.vim.git" }, 40 - "solarized": { "type": "git", "url": "https://github.com/altercation/vim-colors-solarized.git" }, 41 38 "tabular": { "type": "git", "url": "https://github.com/godlygeek/tabular.git" }, 42 39 "tagbar": { "type": "git", "url": "https://github.com/majutsushi/tagbar.git" }, 40 + "tmux-navigator": { "type": "git", "url": "https://github.com/christoomey/vim-tmux-navigator.git" }, 43 41 "toml": { "type": "git", "url": "https://github.com/cespare/vim-toml.git" }, 42 + "undotree": { "type": "git", "url": "https://github.com/mbbill/undotree.git" }, 43 + "unimpaired": { "type": "git", "url": "https://github.com/tpope/vim-unimpaired.git" }, 44 + "unite": { "type": "git", "url": "https://github.com/Shougo/unite.vim.git" }, 44 45 "vimproc": { "type": "git", "url": "https://github.com/Shougo/vimproc.vim.git", "build": "make" }, 46 + "vimux": { "type": "git", "url": "https://github.com/benmills/vimux.git" }, 45 47 "vinegar": { "type": "git", "url": "https://github.com/tpope/vim-vinegar.git" } 46 48 } 47 49 }
+6 -5
tmux.conf
··· 22 22 set -g set-titles on 23 23 24 24 # Smart pane switching with awareness of vim splits 25 - bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim(diff)?$' && tmux send-keys C-h) || tmux select-pane -L" 26 - bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim(diff)?$' && tmux send-keys C-j) || tmux select-pane -D" 27 - bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim(diff)?$' && tmux send-keys C-k) || tmux select-pane -U" 28 - bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim(diff)?$' && tmux send-keys C-l) || tmux select-pane -R" 29 - bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)vim(diff)?$' && tmux send-keys 'C-\\') || tmux select-pane -l" 25 + is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"' 26 + bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" 27 + bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D" 28 + bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U" 29 + bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R" 30 + bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l" 30 31 31 32 # Bring back clear screen under tmux prefix 32 33 bind C-l send-keys 'C-l'
+3
vim/ftplugin/rust.vim
··· 1 1 compiler cargo 2 + 3 + noremap <leader>rb :call VimuxRunCommand("clear; cargo build")<CR> 4 + noremap <leader>rt :call VimuxRunCommand("clear; cargo test")<CR>
+13
vim/plugin/tmux.vim
··· 1 + let g:tmux_navigator_no_mappings = 1 2 + 3 + nnoremap <silent> <C-h> :TmuxNavigateLeft<cr> 4 + nnoremap <silent> <C-k> :TmuxNavigateDown<cr> 5 + nnoremap <silent> <C-j> :TmuxNavigateUp<cr> 6 + nnoremap <silent> <C-l> :TmuxNavigateRight<cr> 7 + nnoremap <silent> <C-\> :TmuxNavigatePrevious<cr> 8 + 9 + noremap <leader>vl :VimuxRunLastCommand<CR> 10 + noremap <leader>vi :VimuxInspectPanel<CR> 11 + noremap <leader>vq :VimuxCloseRunner<CR> 12 + noremap <leader>vx :VimuxInterruptRunner<CR> 13 + noremap <leader>vz :call VimuxZoomRunner()<CR>