-
Notifications
You must be signed in to change notification settings - Fork 0
/
_vimrc
73 lines (58 loc) · 1.61 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
execute pathogen#infect()
syntax on
filetype plugin indent on
set smartindent
set tabstop=4
set shiftwidth=4
set noexpandtab
set colorcolumn=80
set laststatus=2
"set ruler
set hls
set backspace=indent,eol,start
"set foldlevel=99
set tags=tags;/
function! LoadCscope()
let db = findfile("cscope.out", ".;")
if (!empty(db))
let path = strpart(db, 0, match(db, "/cscope.out$"))
set nocscopeverbose " suppress 'duplicate connection' error
exe "cs add " . db . " " . path
set cscopeverbose
endif
endfunction
au BufEnter /* call LoadCscope()
nmap <F8> :TagbarToggle<CR>
let g:syntastic_mode_map = { 'mode': 'passive' }
nmap <Leader>sc :SyntasticCheck<CR>
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
let g:syntastic_go_checkers = ['govet', 'errcheck', 'go']
let g:syntastic_sh_shellcheck_args="-x"
let g:tagbar_type_make = {
\ 'kinds':[
\ 'm:macros',
\ 't:targets'
\ ]
\}
"config merlin for ocaml
if executable("opam")
let g:opamshare = substitute(system('opam config var share'),'\n$','','''')
execute "set rtp+=" . g:opamshare . "/merlin/vim"
let g:syntastic_ocaml_checkers = ['merlin']
endif
"disable auto gofmt while saving
let g:go_fmt_autosave = 0
"config necoghc
let g:necoghc_enable_detailed_browse = 1
"set javascript checker
let g:syntastic_javascript_checkers = ['standard']
"config pymode
let g:pymode_python = 'python3'
let g:pymode_options = 0
let g:pymode_rope_goto_definition_cmd = 'e'