comparison runtime/doc/if_cscop.txt @ 9344:33c1b85d408c

commit https://github.com/vim/vim/commit/802a0d902fca423acb15f835d7b09183883d79a0 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 26 16:17:58 2016 +0200 Updated runtime files.
author Christian Brabandt <cb@256bit.org>
date Sun, 26 Jun 2016 16:30:09 +0200
parents 0bdeaf7092bc
children 9f48eab77d62
comparison
equal deleted inserted replaced
9343:b14783b6c8f6 9344:33c1b85d408c
127 3 or c: Find functions calling this function 127 3 or c: Find functions calling this function
128 4 or t: Find this text string 128 4 or t: Find this text string
129 6 or e: Find this egrep pattern 129 6 or e: Find this egrep pattern
130 7 or f: Find this file 130 7 or f: Find this file
131 8 or i: Find files #including this file 131 8 or i: Find files #including this file
132 9 or a: Find places where this symbol is assigned a value
132 133
133 For all types, except 4 and 6, leading white space for {name} is 134 For all types, except 4 and 6, leading white space for {name} is
134 removed. For 4 and 6 there is exactly one space between {querytype} 135 removed. For 4 and 6 there is exactly one space between {querytype}
135 and {name}. Further white space is included in {name}. 136 and {name}. Further white space is included in {name}.
136 137
253 < 254 <
254 *cscopequickfix* *csqf* *E469* 255 *cscopequickfix* *csqf* *E469*
255 {not available when compiled without the |+quickfix| feature} 256 {not available when compiled without the |+quickfix| feature}
256 'cscopequickfix' specifies whether to use quickfix window to show cscope 257 'cscopequickfix' specifies whether to use quickfix window to show cscope
257 results. This is a list of comma-separated values. Each item consists of 258 results. This is a list of comma-separated values. Each item consists of
258 |cscope-find| command (s, g, d, c, t, e, f or i) and flag (+, - or 0). 259 |cscope-find| command (s, g, d, c, t, e, f, i or a) and flag (+, - or 0).
259 '+' indicates that results must be appended to quickfix window, 260 '+' indicates that results must be appended to quickfix window,
260 '-' implies previous results clearance, '0' or command absence - don't use 261 '-' implies previous results clearance, '0' or command absence - don't use
261 quickfix. Search is performed from start until first command occurrence. 262 quickfix. Search is performed from start until first command occurrence.
262 The default value is "" (don't use quickfix anyway). The following value 263 The default value is "" (don't use quickfix anyway). The following value
263 seems to be useful: > 264 seems to be useful: >
264 :set cscopequickfix=s-,c-,d-,i-,t-,e- 265 :set cscopequickfix=s-,c-,d-,i-,t-,e-,a-
265 < 266 <
266 *cscopetag* *cst* 267 *cscopetag* *cst*
267 If 'cscopetag' is set, the commands ":tag" and CTRL-] as well as "vim -t" 268 If 'cscopetag' is set, the commands ":tag" and CTRL-] as well as "vim -t"
268 will always use |:cstag| instead of the default :tag behavior. Effectively, 269 will always use |:cstag| instead of the default :tag behavior. Effectively,
269 by setting 'cst', you will always search your cscope databases as well as 270 by setting 'cst', you will always search your cscope databases as well as
420 nmap <C-_>t :cs find t <C-R>=expand("<cword>")<CR><CR> 421 nmap <C-_>t :cs find t <C-R>=expand("<cword>")<CR><CR>
421 nmap <C-_>e :cs find e <C-R>=expand("<cword>")<CR><CR> 422 nmap <C-_>e :cs find e <C-R>=expand("<cword>")<CR><CR>
422 nmap <C-_>f :cs find f <C-R>=expand("<cfile>")<CR><CR> 423 nmap <C-_>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
423 nmap <C-_>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR> 424 nmap <C-_>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
424 nmap <C-_>d :cs find d <C-R>=expand("<cword>")<CR><CR> 425 nmap <C-_>d :cs find d <C-R>=expand("<cword>")<CR><CR>
426 nmap <C-_>a :cs find a <C-R>=expand("<cword>")<CR><CR>
425 427
426 " Using 'CTRL-spacebar' then a search type makes the vim window 428 " Using 'CTRL-spacebar' then a search type makes the vim window
427 " split horizontally, with search result displayed in 429 " split horizontally, with search result displayed in
428 " the new window. 430 " the new window.
429 431
433 nmap <C-Space>t :scs find t <C-R>=expand("<cword>")<CR><CR> 435 nmap <C-Space>t :scs find t <C-R>=expand("<cword>")<CR><CR>
434 nmap <C-Space>e :scs find e <C-R>=expand("<cword>")<CR><CR> 436 nmap <C-Space>e :scs find e <C-R>=expand("<cword>")<CR><CR>
435 nmap <C-Space>f :scs find f <C-R>=expand("<cfile>")<CR><CR> 437 nmap <C-Space>f :scs find f <C-R>=expand("<cfile>")<CR><CR>
436 nmap <C-Space>i :scs find i ^<C-R>=expand("<cfile>")<CR>$<CR> 438 nmap <C-Space>i :scs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
437 nmap <C-Space>d :scs find d <C-R>=expand("<cword>")<CR><CR> 439 nmap <C-Space>d :scs find d <C-R>=expand("<cword>")<CR><CR>
440 nmap <C-Space>a :scs find a <C-R>=expand("<cword>")<CR><CR>
438 441
439 " Hitting CTRL-space *twice* before the search type does a vertical 442 " Hitting CTRL-space *twice* before the search type does a vertical
440 " split instead of a horizontal one 443 " split instead of a horizontal one
441 444
442 nmap <C-Space><C-Space>s 445 nmap <C-Space><C-Space>s
451 \:vert scs find e <C-R>=expand("<cword>")<CR><CR> 454 \:vert scs find e <C-R>=expand("<cword>")<CR><CR>
452 nmap <C-Space><C-Space>i 455 nmap <C-Space><C-Space>i
453 \:vert scs find i ^<C-R>=expand("<cfile>")<CR>$<CR> 456 \:vert scs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
454 nmap <C-Space><C-Space>d 457 nmap <C-Space><C-Space>d
455 \:vert scs find d <C-R>=expand("<cword>")<CR><CR> 458 \:vert scs find d <C-R>=expand("<cword>")<CR><CR>
459 nmap <C-Space><C-Space>a
460 \:vert scs find a <C-R>=expand("<cword>")<CR><CR>
456 461
457 ============================================================================== 462 ==============================================================================
458 7. Cscope availability and information *cscope-info* 463 7. Cscope availability and information *cscope-info*
459 464
460 If you do not already have cscope (it did not come with your compiler 465 If you do not already have cscope (it did not come with your compiler