Skip to content

Instantly share code, notes, and snippets.

@sas1ni69
Last active May 8, 2017 09:32
Show Gist options
  • Save sas1ni69/8e2c705e89b3bc6534c3 to your computer and use it in GitHub Desktop.
Save sas1ni69/8e2c705e89b3bc6534c3 to your computer and use it in GitHub Desktop.
call plug#begin('~/.vim/plugged')
Plug 'kchmck/vim-coffee-script'
Plug 'kien/ctrlp.vim'
Plug 'rking/ag.vim'
Plug 'scrooloose/nerdcommenter'
Plug 'scrooloose/nerdtree'
Plug 'slim-template/vim-slim'
Plug 'thoughtbot/vim-rspec'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-rails'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'vim-ruby/vim-ruby'
Plug 'terryma/vim-multiple-cursors'
call plug#end()
filetype plugin on
filetype indent on
let mapleader="\<space>"
colorscheme monokai
set background=dark
set clipboard=unnamed
set cursorline
set encoding=utf-8
set expandtab
set hlsearch
set incsearch
set laststatus=2
set linespace=0
set noswapfile
set nowrap
set number
set relativenumber
set shell=bash
set shiftwidth=2
set showmatch
set smarttab
set t_Co=256
set tabstop=2
set ttimeoutlen=50
syntax enable
map <C-k> :NERDTreeToggle<CR>
map <Leader>t :call RunCurrentSpecFile()<CR>
map <Leader>s :call RunNearestSpec()<CR>
map <Leader>l :call RunLastSpec()<CR>
map <Leader>A :call RunAllSpecs()<CR>
map <Leader>j i<Enter><Esc>
let g:ctrlp_prompt_mappings = {
\ 'AcceptSelection("e")': ['<c-t>'],
\ 'AcceptSelection("t")': ['<cr>', '<2-LeftMouse>'],
\ }
let g:multi_cursor_next_key='<C-n>'
let g:multi_cursor_prev_key='<C-i>'
let g:multi_cursor_skip_key='<C-x>'
let g:multi_cursor_quit_key='<C-c>'
let NERDTreeShowHidden=1
let g:rspec_command="!rspec --drb {spec}"
let g:ctrlp_custom_ignore='node_modules\|DS_Store\|git|bower_components\'
let g:airline_theme='tagbar'
let g:airline_powerline_fonts=1
let g:airline#extensions#tabline#enabled = 0
let g:airline_skip_empty_sections = 1
@sas1ni69
Copy link
Author

sas1ni69 commented May 8, 2017

Dependencies

 brew install the_silver_searcher

Font

https://gist.github.com/baopham/1838072

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment