Created
January 20, 2014 17:40
-
-
Save mattbailey/8524932 to your computer and use it in GitHub Desktop.
This file contains 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
"""""""""""""""""""" PLUGINS | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
call pathogen#infect() | |
Bundle 'gmarik/vundle' | |
Bundle 'bruno-/vim-vertical-move' | |
Bundle 'matchit.zip' | |
Bundle 'The-NERD-Commenter' | |
Bundle 'suan/vim-instant-markdown' | |
Bundle 'altercation/vim-colors-solarized' | |
Bundle 'tpope/vim-endwise' | |
Bundle 'scrooloose/nerdtree' | |
Bundle 'tpope/vim-haml' | |
Bundle 'vim-ruby/vim-ruby' | |
Bundle 'sjl/badwolf' | |
Bundle 'benmills/vimux' | |
Bundle 'majutsushi/tagbar' | |
Bundle 'tpope/vim-fugitive' | |
Bundle 'mattboehm/unstack' | |
Bundle 'justinmk/vim-gtfo' | |
Bundle 'ervandew/supertab' | |
Bundle 'scrooloose/syntastic' | |
Bundle 'tpope/vim-rake' | |
Bundle 'tpope/vim-dispatch' | |
Bundle 'tpope/vim-markdown' | |
Bundle 'tpope/vim-cucumber' | |
Bundle 'tpope/vim-bundler' | |
Bundle 'bling/vim-airline' | |
Bundle 'airblade/vim-gitgutter' | |
Bundle 'cwoac/nvim' | |
Bundle 'sheerun/vim-polyglot' | |
Bundle 'ecomba/vim-ruby-refactoring' | |
Bundle 'LaTeX-Box-Team/LaTeX-Box' | |
Bundle 'mattboehm/vim-accordion' | |
Bundle 'vim-scripts/SyntaxRange' | |
Bundle 'ivyl/vim-bling' | |
Bundle 'rizzatti/funcoo.vim' | |
Bundle 'rizzatti/dash.vim' | |
Bundle 'justinmk/vim-sneak' | |
Bundle 'kien/ctrlp.vim' | |
Bundle 'Valloric/YouCompleteMe' | |
Bundle 'editorconfig/editorconfig-vim' | |
Bundle 'pangloss/vim-javascript' | |
Bundle 'osyo-manga/vim-over' | |
"""""""""""""""""""" GLOBAL | |
let g:airline_powerline_fonts = 1 | |
let g:airline#extensions#tabline#enabled = 1 | |
set relativenumber | |
set number | |
"let g:airline_right_sep = '' | |
"let g:airline_right_alt_sep = '' | |
"let g:airline_left_sep = '' | |
"let g:airline_left_alt_sep = '' | |
let mapleader="," | |
set t_Co=256 | |
syntax on | |
colorscheme gummybears | |
filetype plugin indent on | |
set encoding=utf-8 | |
set hidden | |
set nowrap | |
set backspace=indent,eol,start | |
set autoindent | |
set copyindent | |
set number | |
set shiftround | |
set ignorecase | |
set smartcase | |
set hlsearch | |
set incsearch | |
set history=1000 | |
set undolevels=1000 | |
set wildignore=*.swp,*.bak | |
set title | |
set visualbell | |
set noerrorbells | |
set list | |
set listchars=tab:>.,trail:.,extends:#,nbsp:. | |
set ttyfast | |
set mouse= | |
set nocompatible | |
set backup | |
set backupdir=~/.vim_backup | |
set noswapfile | |
set fileformats=unix,dos,mac | |
set laststatus=2 | |
set expandtab | |
set softtabstop=2 tabstop=2 shiftwidth=2 | |
set ruler | |
"""""""""""""""""""" KEYBINDINGS | |
map cc <leader>c<space> | |
map <F6> :setlocal spell! spelllang=en<CR> | |
map <F12> :set invhls<CR> | |
cmap <C-g> <C-u><ESC> | |
command! -bang W w<bang> | |
"""""""""""""""""""" PLUGINS | |
let g:Powerline_symbols = 'fancy' | |
let g:CommandTMaxFiles=5000 | |
let g:CommandTMaxHeight=12 | |
let g:CommandTAcceptSelectionMap = '<CR>' | |
let g:CommandTCancelMap = '<C-g>' | |
let g:sneak#streak = 1 | |
"""""""""""""""""""" FILES SPECIFIC | |
au BufRead mutt-* set ft=mail | |
au BufRead mutt-* set invhls | |
au bufNewFile *.html 0r ~/.vim/templates/html.txt | |
au BufRead,BufNewFile *.jsm setfiletype javascript | |
au BufRead,BufNewFile *.xul setfiletype xml | |
autocmd filetype html,xml set listchars-=tab:>. | |
""""""""""""""" pastetoggle | |
set pastetoggle=<F3> | |
"Remove indenting on empty lines | |
map <F2> :%s/\s*$//g<cr>:noh<cr>'' | |
"""""""""""""" minbuxexplorer settings | |
let g:miniBufExplMapWindowNavVim = 1 | |
let g:miniBufExplMapWindowNavArrows = 1 | |
let g:miniBufExplMapCTabSwitchBufs = 1 | |
let g:miniBufExplModSelTarget = 1 | |
let g:ctrlp_map = '<C-D>' | |
"map <C-D> :Unite file buffer<CR> | |
map <C-P> :bp<CR> | |
map <C-N> :bn<CR> | |
"map <C-D> <C-O>:CtrlP<CR> | |
nmap \t :set expandtab tabstop=4 shiftwidth=4 softtabstop=4<CR> | |
nmap \T :set expandtab tabstop=8 shiftwidth=8 softtabstop=4<CR> | |
nmap \M :set noexpandtab tabstop=8 softtabstop=4 shiftwidth=4<CR> | |
nmap \m :set expandtab tabstop=2 shiftwidth=2 softtabstop=2<CR> | |
nmap \e :NERDTreeToggle<CR> | |
nmap ; :CtrlPBuffer<CR> | |
let g:ctrlp_match_window_bottom = 0 | |
let g:ctrlp_match_window_reversed = 0 | |
let g:ctrlp_custom_ignore = '\v\~$|\.(o|swp|pyc|wav|mp3|ogg|blend)$|(^|[/\\])\.(hg|git|bzr)($|[/\\])|__init__\.py' | |
let g:ctrlp_working_path_mode = 0 | |
let g:ctrlp_dotfiles = 0 | |
let g:ctrlp_switch_buffer = 0 | |
nmap \l :setlocal number!<CR> | |
nmap \o :set paste!<CR> | |
nmap j gj | |
nmap k gk | |
cnoremap <C-a> <Home> | |
set incsearch | |
set ignorecase | |
set smartcase | |
set hlsearch | |
nmap \q :nohlsearch<CR> | |
nmap <C-e> :e#<CR> | |
nmap \g :TagbarToggle<CR> | |
set showcmd | |
cmap W w !sudo tee % >/dev/null<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment