Created
April 25, 2017 16:44
-
-
Save jerrymarino/9d36472f5e41d3f2272c7a88d7589aea to your computer and use it in GitHub Desktop.
Minimalist vimrc for vim with tmux
This file contains hidden or 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
| " Basic setup | |
| let mapleader="," | |
| set clipboard=unnamed | |
| execute pathogen#infect() | |
| syntax on | |
| filetype plugin indent on | |
| set number | |
| set noswapfile | |
| " Vimux | |
| " Prompt for a command to run | |
| map <Leader>vp :VimuxPromptCommand<CR> | |
| " Close | |
| map <Leader>vq :VimuxCloseRunner<CR> | |
| " Inspect runner pane | |
| map <Leader>vi :VimuxInspectRunner<CR> | |
| autocmd BufReadPost,FileReadPost,BufNewFile * call system("tmux rename-window " . expand("%")) | |
| " TMUX navigator | |
| let g:tmux_navigator_no_mappings = 1 | |
| nnoremap <silent> <ctrl-l> :TmuxNavigateLeft<cr> | |
| nnoremap <silent> <ctrl-w-j> :TmuxNavigateDown<cr> | |
| nnoremap <silent> <ctrl-w-k> :TmuxNavigateUp<cr> | |
| nnoremap <silent> <ctrl-w-h> :TmuxNavigateRight<cr> | |
| " Navigate to the previous window | |
| " nnoremap <silent> {Previous-Mapping} :TmuxNavigatePrevious<cr> | |
| " FZF | |
| " If installed using git | |
| set rtp+=~/.fzf | |
| " If installed using Homebrew | |
| set rtp+=/usr/local/opt/fzf | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment