-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
102 lines (87 loc) · 3.16 KB
/
.vimrc
File metadata and controls
102 lines (87 loc) · 3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
" Visual
set number
set cursorline " Highlight line number
syntax enable
set background=dark
colorscheme gruvbox
" Search
set hlsearch " Highlight matches
set incsearch " Incremental searching
set ignorecase " Searches are case insensitive...
set smartcase " ... unless they contain at least one capital letter
" Tabs and white spaces
set nowrap " Don't wrap lines
set tabstop=2 " Tabs are always 2 spaces
set expandtab " Expand tabs into spaces
set shiftwidth=2 " Reindent with 2 spaces (using <<)
set list " Show invisible chars
set listchars="" " Reset listchars
set list listchars=tab:»·,trail:· " Set listchars for tabs and trailing spaces
set smartindent " indents correctly (most of the time)
"
" Behavioral
set backspace=indent,eol,start " Backspace work normal
set clipboard=unnamed " Share clipboard
set directory=/tmp " Set swap directly to not clutter workspace files
set autoread " Auto-reload buffers when file changed on disk
set noswapfile " Don't use swap files (.swp)
set mouse=a " Allow mouse usage
noremap <Leader>p "0p " Use normal non-vim pasting
noremap <Leader>P "0P
vnoremap <Leader>p "0p
" Vundle config
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()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'bling/vim-airline'
Plugin 'kien/ctrlp.vim'
Plugin 'morhetz/gruvbox'
Plugin 'tpope/vim-fugitive'
Plugin 'mattn/emmet-vim'
Plugin 'airblade/vim-gitgutter'
Plugin 'tpope/vim-sleuth'
Plugin 'Raimondi/delimitMate'
Plugin 'scrooloose/nerdcommenter'
Plugin 'dkprice/vim-easygrep'
Plugin 'altercation/vim-colors-solarized'
Plugin 'scrooloose/syntastic'
Plugin 'mtscout6/syntastic-local-eslint.vim'
" Javascript
Plugin 'mustache/vim-mustache-handlebars'
Plugin 'pangloss/vim-javascript'
"Ruby
Plugin 'tpope/vim-endwise'
Plugin 'slim-template/vim-slim'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" Airline config
let g:airline_powerline_fonts = 1
set laststatus=2
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#fnamemod = ':t' "Show just filename in buffer
" NERDTREE config
" Map CTRL+E to open NERDTREE
map <C-e> :NERDTreeToggle<CR>
let NERDTreeShowHidden=1 "Show hidden files by default
" sets leader to be comma
let mapleader=","
" insert pry
map <leader>ip orequire 'pry';binding.pry<CR><Esc>
" CtrlP
" Ignore following directories in fuzzy search
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git'
" Syntastic
let g:syntastic_javascript_checkers = ['eslint']
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0