-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
87 lines (64 loc) · 1.77 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
" Vundle
" ======
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'davidhalter/jedi-vim'
Plugin 'scrooloose/syntastic'
Plugin 'scrooloose/nerdtree'
Plugin 'pangloss/vim-javascript'
Plugin 'elzr/vim-json'
call vundle#end()
filetype plugin indent on
" General
" =======
set cursorline
set number
set list
set background=dark
set mouse=a
set nowrap
set expandtab
set shiftwidth=2
set softtabstop=2
"set smartindent
set cindent
set cinkeys-=0#
set indentkeys-=0#
set wildmenu
set shellcmdflag=-ic
autocmd FileType html setlocal expandtab shiftwidth=2 softtabstop=2
autocmd FileType python setlocal expandtab shiftwidth=4 softtabstop=4
autocmd FileType javascript setlocal expandtab shiftwidth=2 softtabstop=2
" make searches case-insensitive, unless they contain upper-case letters
set ignorecase
set smartcase
set incsearch
" Syntastic
" =========
"set statusline+=%#warningmsg#
"set statusline+=%{SyntasticStatuslineFlag()}
"set statusline+=%*
let g:npm_dir = substitute(system('npm bin'), '\n\+$', '', '')
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
let g:syntastic_loc_list_height = 5
" Work-specific settings
let g:syntastic_python_flake8_post_args='--ignore=E501,E128,E713,E265,E126,E113,F403,F503,E402,E226'
let g:syntastic_javascript_checkers = ['jshint']
"let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_javascript_eslint_exec = g:npm_dir . '/eslint'
" vim-javascript
" ==============
let g:javascript_enable_domhtmlcss = 1
" vim-json
" ========
let g:vim_json_syntax_conceal = 0
" jedi-vim
" ========
"let g:jedi#show_call_signatures = "2"
autocmd FileType python setlocal completeopt-=preview