Skip to content

Instantly share code, notes, and snippets.

@ronan-mch
Created September 12, 2016 19:55
Show Gist options
  • Save ronan-mch/9d4a0ad9a44c4bbcc11b04b2ded0cab1 to your computer and use it in GitHub Desktop.
Save ronan-mch/9d4a0ad9a44c4bbcc11b04b2ded0cab1 to your computer and use it in GitHub Desktop.
Vim configuration
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 'VundleVim/Vundle.vim'
Bundle 'vim-ruby/vim-ruby'
Plugin 'elixir-lang/vim-elixir'
Plugin 'mileszs/ack.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
"Plugin 'tpope/vim-rails'
Plugin 'thoughtbot/vim-rspec'
" All of your Plugins must be added before the following line
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
set number
set hlsearch
set incsearch
let g:ackprg = "/usr/bin/ack -s -H --nocolor --nogroup --column"
autocmd FileType ruby setlocal expandtab shiftwidth=2 tabstop=2
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
map <C-n> :NERDTreeToggle<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment