Last active
August 29, 2015 14:09
-
-
Save waldofe/e8372e2fb54977e80402 to your computer and use it in GitHub Desktop.
My .vimrc
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
set number | |
set tabstop=2 | |
set expandtab | |
# size of an indent | |
set shiftwidth=2 | |
# a combination of spaces and tabs are used to simulate tab stops at a width | |
# other than the (hard)tabstop | |
set softtabstop=2 | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
set runtimepath^=~/.vim/bundle/ctrlp.vim | |
# Enable the list of buffers | |
let g:airline#extensions#tabline#enabled = 1 | |
# Show just the filename | |
let g:airline#extensions#tabline#fnamemod = ':t' | |
# This allows buffers to be hidden if you've modified a buffer. | |
# This is almost a must if you wish to use buffers in this way. | |
set hidden | |
# RSpec.vim mappings | |
map <Leader>f :call RunCurrentSpecFile()<CR> | |
map <Leader>r :call RunNearestSpec()<CR> | |
map <Leader>e :call RunLastSpec()<CR> | |
map <Leader>a :call RunAllSpecs()<CR> | |
nmap <silent> <C-D> :NERDTreeToggle<CR> | |
nmap <silent> <C-E> :bd<CR> | |
# To open a new empty buffer | |
# This replaces :tabnew which I used to bind to this mapping | |
nnoremap <C-l> :bnext<CR> | |
nnoremap <C-h> :bprevious<CR> | |
nnoremap <silent> vv <C-w>v | |
# Disabling swap files generation | |
set noswapfile | |
let g:ctrlp_custom_ignore = { | |
\ 'dir': '\.git$\|\.hg$\|\.svn$\|\.yardoc\|public\/images\|public\/system\|data\|log\|tmp$', | |
\ 'file': '\.exe$\|\.so$\|\.dat$' | |
\ } | |
# Dependencies | |
Bundle 'slim-template/vim-slim.git' | |
Bundle 'scrooloose/nerdtree.git' | |
Bundle 'bling/vim-airline' | |
Bundle 'terryma/vim-multiple-cursors' | |
Plugin 'thoughtbot/vim-rspec' | |
Plugin 'mileszs/ack.vim' | |
Bundle 'tpope/vim-rbenv.git' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment