-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
63 lines (47 loc) · 1.13 KB
/
vimrc
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
call pathogen#infect()
call pathogen#helptags()
filetype on
syntax on
colorscheme Tomorrow-Night-Bright
filetype plugin on
filetype indent on
set hidden
set history=100
filetype indent on
set nowrap
set tabstop=2
set shiftwidth=2
set expandtab
set smarttab
set smartindent
set autoindent
" remove whitespace on save
autocmd BufWritePre * :%s/\s\+$//e
set hlsearch
nnoremap <silent> <Esc> :nohlsearch<Bar>:echo<CR>
set showmatch
" No annoying sound on errors
set noerrorbells
set novisualbell
set t_vb=
set tm=500
set nobackup
set nowb
set noswapfile
set laststatus=2
set statusline=\ %{HasPaste()}%F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\ %l\ \ Column:\ %c
map 0 ^
" GitGutter
let g:gitgutter_sign_column_always=1
" CTRL-P
let g:ctrlp_working_path_mode=0
let g:ctrlp_map='<c-f>'
map <leader>j :CtrlP<cr>
map <c-b> :CtrlPBuffer<cr>
let g:ctrlp_max_height=20
let g:ctrlp_custom_ignore='node_modules\|^\.DS_Store\|^\.git\|^\.coffee'
" Synastic
let g:syntastic_javascript_checkers=['eslint']
let g:syntastic_vue_checkers=['eslint']
let g:syntastic_javascript_eslint_exe='$(npm bin)/eslint'
let g:syntastic_vue_eslint_exe='$(npm bin)/eslint'