Skip to content

Instantly share code, notes, and snippets.

@jerrymarino
Created April 25, 2017 16:44
Show Gist options
  • Select an option

  • Save jerrymarino/9d36472f5e41d3f2272c7a88d7589aea to your computer and use it in GitHub Desktop.

Select an option

Save jerrymarino/9d36472f5e41d3f2272c7a88d7589aea to your computer and use it in GitHub Desktop.
Minimalist vimrc for vim with tmux
" 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