Skip to content

Instantly share code, notes, and snippets.

@arnaldog
Last active August 29, 2015 14:20
Show Gist options
  • Save arnaldog/9fe77588f54750e35519 to your computer and use it in GitHub Desktop.
Save arnaldog/9fe77588f54750e35519 to your computer and use it in GitHub Desktop.
syntax on
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'bling/vim-airline'
Plugin 'scrooloose/nerdtree'
Plugin 'kien/ctrlp.vim'
Plugin 'rking/ag.vim'
Plugin 'othree/html5.vim'
Plugin 'elzr/vim-json'
Plugin 'stephpy/vim-yaml'
Plugin 'wombat256.vim'
Plugin 'thoughtbot/vim-rspec'
Plugin 'tpope/vim-rvm'
Plugin 'tpope/vim-rails'
Plugin 'tpope/vim-bundler'
Plugin 'airblade/vim-gitgutter'
Plugin 'vim-scripts/taglist.vim'
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'edkolev/promptline.vim'
Plugin 'tpope/vim-dispatch'
Plugin 'mattn/gist-vim'
Plugin 'mattn/webapi-vim'
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"
" colorscheme wombat256mod
set mouse=a
set expandtab
set tabstop=2
set shiftwidth=2
set colorcolumn=80
set autoindent
set nostartofline
set number
set ruler
set cmdheight=2
set pastetoggle=<F11>
set bs=indent,eol,start " Backspace over everything in insert mode
set shell=zsh
set shell=/bin/sh
" RSpec.vim mappings
map <Leader>t :call RunCurrentSpecFile()<CR>
map <Leader>s :call RunNearestSpec()<CR>
map <Leader>l :call RunLastSpec()<CR>
map <Leader>a :call RunAllSpecs()<CR>
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
autocmd BufEnter * Rvm
"autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
compiler rubyunit
let g:promptline_theme = 'airline'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment