Install vundle:
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
Copy .vimrc
:
curl -l https://gist.github.com/brennovich/5310806/raw >> ~/.vimrc
Run Bundle install
vim +BundleInstall +qall
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
let mapleader=',' | |
" let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/vundle' | |
" Plugins | |
Bundle 'Lokaltog/vim-easymotion' | |
Bundle 'Lokaltog/vim-powerline' | |
Bundle 'airblade/vim-gitgutter' | |
Bundle 'chriskempson/base16-vim' | |
Bundle 'chriskempson/tomorrow-theme', {'rtp': 'vim/'} | |
Bundle 'ervandew/supertab' | |
Bundle 'kien/ctrlp.vim' | |
Bundle 'mikewest/vimroom' | |
Bundle 'myusuf3/numbers.vim' | |
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'} | |
Bundle 'scrooloose/nerdtree' | |
nnoremap <leader>n :NERDTreeToggle<CR> | |
Bundle 'tpope/vim-fugitive' | |
Bundle 'tpope/vim-haml' | |
Bundle 'kana/vim-textobj-user' | |
Bundle 'vim-scripts/YankRing.vim' | |
let g:yankring_replace_n_pkey = '<leader>[' | |
let g:yankring_replace_n_nkey = '<leader>]' | |
let g:yankring_history_dir = '~/.vim/tmp/' | |
nmap <leader>y :YRShow<cr> | |
Bundle 'troydm/easybuffer.vim' | |
nmap <leader>be :EasyBufferToggle<enter> | |
Bundle 'michaeljsmith/vim-indent-object' | |
let g:indentobject_meaningful_indentation = ["haml", "sass", "python", "yaml", "markdown"] | |
Bundle 'scrooloose/nerdcommenter' | |
nmap <leader># :call NERDComment(0, "invert")<cr> | |
vmap <leader># :call NERDComment(0, "invert")<cr> | |
Bundle 'kchmck/vim-coffee-script' | |
au BufNewFile,BufReadPost *.coffee setl shiftwidth=2 tabstop=2 softtabstop=2 expandtab | |
Bundle 'vim-ruby/vim-ruby' | |
Bundle 'tpope/vim-rails' | |
Bundle 'nelstrom/vim-textobj-rubyblock' | |
Bundle 'ecomba/vim-ruby-refactoring' | |
" Settings | |
filetype plugin indent on | |
syntax on | |
set listchars=tab:▸\ ,eol:¬,extends:❯,precedes:❮ | |
set list | |
set magic | |
setlocal shiftwidth=2 | |
setlocal tabstop=2 | |
set autoread | |
set backspace=indent,eol,start | |
set binary | |
set cinoptions=:0,(s,u0,U1,g0,t0 | |
set completeopt=menuone,preview | |
set encoding=utf-8 | |
set hidden | |
set history=1000 | |
set incsearch | |
set undodir=~/.vim/tmp/undo// " undo files | |
set undofile | |
set undolevels=3000 | |
set undoreload=10000 | |
set backupdir=~/.vim/tmp/backup// " backups | |
set directory=~/.vim/tmp/swap// " swap files | |
set backup | |
set noswapfile | |
set autoindent | |
set tabstop=2 | |
set softtabstop=2 | |
set textwidth=80 | |
set shiftwidth=2 | |
set expandtab | |
set wrap | |
set formatoptions=qrn1 | |
set colorcolumn=+1 | |
" Theme | |
set background=light | |
colorscheme Tomorrow | |
" Always show status line | |
set laststatus=2 | |
" Add some line space for easy reading | |
set linespace=2 | |
" Disable GitGutter Bar Hightlight | |
highlight clear SignColumn |
Install vundle:
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
Copy .vimrc
:
curl -l https://gist.github.com/brennovich/5310806/raw >> ~/.vimrc
Run Bundle install
vim +BundleInstall +qall