Created
September 10, 2015 18:57
-
-
Save iwilliams/c7c6d5483e1fb40c6477 to your computer and use it in GitHub Desktop.
Dev configs
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
| # https://wiki.archlinux.org/index.php/Tmux | |
| set -g default-terminal "xterm-256color" | |
| set -g mode-mouse on | |
| set -g mouse-select-pane on | |
| set -g mouse-resize-pane on | |
| set -g mouse-select-window on | |
| # Set window index to 1 | |
| set -g base-index 1 | |
| # Bind vim keys to select pane | |
| bind h select-pane -L | |
| bind j select-pane -D | |
| bind k select-pane -U | |
| bind l select-pane -R | |
| bind -r Down resize-pane -D 5 | |
| bind -r Up resize-pane -U 5 | |
| bind -r Left resize-pane -L 5 | |
| bind -r Right resize-pane -R 5 |
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
| syntax enable | |
| set autoindent | |
| set background=dark | |
| set backspace=2 | |
| execute pathogen#infect() | |
| syntax on | |
| filetype plugin indent on | |
| let mapleader=" " | |
| set shiftwidth=2 | |
| set expandtab | |
| set tabstop=2 | |
| set number | |
| set mouse=a | |
| set clipboard=unnamed | |
| set ruler | |
| set autochdir | |
| set hidden | |
| set laststatus=2 | |
| " Sends .swp files to .vim folder instead of project directory, from: | |
| " http://stackoverflow.com/questions/821902/disabling-swap-files-creation-in-vim | |
| set backupdir=~/.vim/backup// | |
| set directory=~/.vim/swap// | |
| set undodir=~/.vim/undo// | |
| " Maps F12 to reload syntax highlighting, from: http://vim.wikia.com/wiki/Fix_syntax_highlighting | |
| noremap <F12> <Esc>:syntax sync fromstart<CR> | |
| inoremap <F12> <C-o>:syntax sync fromstart<CR> | |
| " Custom shortcuts | |
| nnoremap <Leader><Tab> :NERDTreeToggle<CR> | |
| nnoremap <Leader>` :BuffergatorToggle<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment