File tree Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Plugin 'VundleVim/Vundle.vim'
9
9
Plugin ' majutsushi/tagbar'
10
10
Plugin ' fholgado/minibufexpl.vim'
11
11
Plugin ' scrooloose/nerdtree'
12
- Plugin ' tomasr/molokai '
12
+ Plugin ' airblade/vim-gitgutter '
13
13
14
14
call vundle#end () " required
15
15
filetype plugin indent on " required
@@ -21,9 +21,10 @@ filetype plugin indent on " required
21
21
set number
22
22
" width of a tabstop
23
23
" soft just used for backspace
24
- set tabstop = 2
25
- set softtabstop = 2
26
- set shiftwidth = 2
24
+ set tabstop = 4
25
+ set softtabstop = 4
26
+ " indent = 4
27
+ set shiftwidth = 4
27
28
" tab -> space
28
29
set smarttab
29
30
set expandtab
@@ -105,5 +106,22 @@ let NERDTreeMinimalUI=1
105
106
" " 删除文件时自动删除文件对应 buffer
106
107
let NERDTreeAutoDeleteBuffer= 1
107
108
109
+ " git gutter
110
+
111
+
108
112
" cscope
109
- map g<c-\> :cs find 0 <C-R> =expand("<cword> ")<CR><CR>
113
+ if has (' cscope' )
114
+ set cscopetag cscopeverbose
115
+
116
+ if has (' quickfix' )
117
+ set cscopequickfix = s - ,d - ,i - ,e -
118
+ endif
119
+
120
+ cnoreabbrev csa cs add
121
+ cnoreabbrev csf cs find
122
+
123
+ command -nargs =0 Cscope cs add $VIMSRC /src/ cscope .out $VIMSRC /src
124
+ map g<c-\> :cs find 0 <C-R> =expand("<cword> ")<CR><CR>
125
+ nmap <C-\> c :cs find c <C-R> =expand("<cword> ")<CR><CR>
126
+ endif
127
+
You can’t perform that action at this time.
0 commit comments