*if_cscop.txt*   Vim version 6.2.   : 2003 May 24


			   VIM -  

							*cscope* *Cscope*
  ,    Vim  cscope.

Cscope  ,   ctags,     .
      ctags " ".  Vim    
  cscope         . 
    ,      
       
 ||.

1.   cscope			|cscope-|
2. ,   cscope	|cscope-|
3.  cscope				|cscope-|
4.  cscope  Vim		|cscope-|
5. 				|cscope-|
6.   		|cscope-|
7.     cscope	|cscope-|

         Unix  Win32.
{Vi       }

==============================================================================
1.   cscope			      *cscope-intro* *cscope-*

      man  cscope:

				    -----

  Cscope    ,  :

       ,     C     
       .

                
         .

          ,   
            enum.

       ,        ,
             .

                .

               .

         :
          ?
         ̣?
           ϣ ?
        ̣   ?
             ?
           ?
           ?
        ң   "out of space"   ?
                
          ?
            ?
       
  Cscope    ,     
  ,      cscope   
  .   ,      
  ,      ,  Σ 
    .    ,   Σ
       ,    
    ,    .

				    -----

   cscope       
   ,    .  ,
        cscope   
       
 ,        
  vi CTRL-]  :tag,  .

       cscope  Vim, 
 cscope          
     .  ,    cscope
   ,       
 (CTRL-]  :tag),       
  CTRL-T. ( ,     
    ,    ,
   cscope   .    
       .)

==============================================================================
2. ,   cscope	    *cscope-commands* *cscope-*

	         *:cscope* *:cs* *:scs* *:scscope* *E259* *E262* *E561* *E560*
  cscope       cscope
":cscope".       -- ":cs". 
":scscope"    ,    ̣  (ݣ
: "scs").

 :
			      *E563* *E564* *E566* *E568* *E569* *E622* *E623*
			                                  *E625* *E626* *E609*
    add   :    .

		:cs add {file|dir} [pre-path] [flags]

	    [pre-path]    -P  cscope.

	    [flags]      cscope.

	 >
	    :cscope add /usr/local/cdb/cscope.out
	    :cscope add /projects/vim/cscope.out /usr/local/vim
	    :cscope add cscope.out /usr/local/vim -C
<			    
                                                       *cscope-find* *cs-find*
						                 *E565* *E567*
    find  :   cscope.     cscope, 
	     #5 ("  grep").

		:cs find {-} {}

	    {-}   ,  
	      cscope   nvi:

		0  s:    C
		1  g:   
		2  d:  ,   
		3  c:  ,   
		4  t:    
		6  e:    egrep
		7  f:   
		8  i:  ,      #include

	 >
	    :cscope find c vim_free
	    :cscope find 3 vim_free
<
	            . >

	    :cscope find 0 DEFAULT_TERM
<
	          Vim 5.1  
	    :

	     cscope: DEFAULT_TERM
	       #   .    <<context>> / 
	       1   1009  vim-5.1-gtk/src/term.c <<GLOBAL>>
			 #define DEFAULT_TERM (char_u *)"amiga"
	       2   1013  vim-5.1-gtk/src/term.c <<GLOBAL>>
			 #define DEFAULT_TERM (char_u *)"win32"
	       3   1017  vim-5.1-gtk/src/term.c <<GLOBAL>>
			 #define DEFAULT_TERM (char_u *)"pcterm"
	       4   1021  vim-5.1-gtk/src/term.c <<GLOBAL>>
			 #define DEFAULT_TERM (char_u *)"ansi"
	       5   1025  vim-5.1-gtk/src/term.c <<GLOBAL>>
			 #define DEFAULT_TERM (char_u *)"vt52"
	       6   1029  vim-5.1-gtk/src/term.c <<GLOBAL>>
			 #define DEFAULT_TERM (char_u *)"os2ansi"
	       7   1033  vim-5.1-gtk/src/term.c <<GLOBAL>>
			 #define DEFAULT_TERM (char_u *)"ansi"
	       8   1037  vim-5.1-gtk/src/term.c <<GLOBAL>>
			 # undef DEFAULT_TERM
	       9   1038  vim-5.1-gtk/src/term.c <<GLOBAL>>
			 #define DEFAULT_TERM (char_u *)"beos-ansi"
	      10   1042  vim-5.1-gtk/src/term.c <<GLOBAL>>
			 #define DEFAULT_TERM (char_u *)"mac-ansi"
	      11   1335  vim-5.1-gtk/src/term.c <<set_termname>>
			 term = DEFAULT_TERM;
	      12   1459  vim-5.1-gtk/src/term.c <<set_termname>>
			 if (STRCMP(term, DEFAULT_TERM))
	      13   1826  vim-5.1-gtk/src/term.c <<termcapinit>>
			 term = DEFAULT_TERM;
	      14   1833  vim-5.1-gtk/src/term.c <<termcapinit>>
			 term = DEFAULT_TERM;
	      15   3635  vim-5.1-gtk/src/term.c <<update_tcap>>
			 p = find_builtin_term(DEFAULT_TERM);
	        ( <CR>  ):

	         :
	    1.   (   15 ).
	    2.    .
	    3.  ,   .
	    4.   (, global   ).
	    5.  .

    help  :   .

	       :cs help

						                 *E260* *E261*
    kill  :    cscope (    cscope).

	       :cs kill {|_}

	        cscope,   
	        .    
	         cscope.  
	          !

	       -1,      
	    cscope.

    reset :      cscope.

	       :cs reset

    show  :    cscope.

	       :cs show

							       *:cstag* *E257*
   cscope   ctags,  |:cstag|  
       . ,    
 ()  cscope,      ,     
  tags. ,    ,  
|csto|.    |cscope-|.

 |:cstag|     ":cs find g"  
,   ģ    cscope.

     tags, |:cstag|  , 
  |:tjump|   .

==============================================================================
3.  cscope				       *cscope-options* *cscope-*

   cscope   |:set|.   
     ,  .vimrc. 
,   cscope     |.vimrc|. 
   Vim     !

							   *cscopeprg* *csprg*
 'cscopeprg'   ,    
cscope. 
  : "cscope". 
: >

	:set csprg=/usr/local/bin/cscope
<
					        *cscopequickfix* *csqf* *E469*
{    ,  Vim   
|+quickfix|}
 'cscopequickfix'     
     cscope.  
  ̣  .    
  |cscope-find| (s, g, d, c, t, e, f  i)   
(+, -  0).
'+'   ,        
  , '-'    ,
'0'    --     
.        
.      "" (..   
  ).     :
"s-,c-,d-,i-,t-,e-".

							     *cscopetag* *cst*
 ޣ  'cscopetag',  ":tag"  CTRL-],   "vim -t"
   |:cstag|  :tag.    
     cscope,      
. 
  : . 
: >

	:set cst
	:set nocst
<
						       *cscopetagorder* *csto*
 'csto'     |:cstag|.   'csto'
  ,        cscope,
        tags,  cscope  
ģ.    'csto'  ,     tags
      cscope. 
  : 0.
: >

	:set csto=0
	:set csto=1
<
						      *cscopeverbose* *csverb*
   'cscopeverbose',     cscope
        
.       |.vimrc|  
  cscope  .vimrc,      .   ,
       Vim  
      .
  : .
: >
	
	:set csverb
	:set nocsverb
<
						       *cscopepathcomp* *cspc*
  'cspc'      , 
   .      
    .  1    
 ,   .    
  . 
  : 0.
: >

	:set cspc=3

   3   ,    .

==============================================================================
4.  cscope  Vim         *cscope-howtouse* *cscope-*

       cscope   
.      --   "cscope -b".
       man 
cscope.

      cscope,  ţ     Vim.
   "" cscope    
  .        
  .vimrc     Vim. , 
   "cscope.out",   >

	:cs add cscope.out

       ":cs show". 
   :

 # pid	    		       
 0 28806  cscope.out			      <>

: 
-  Microsoft RTL,   Win32  
  pid  0.

      cscope   
  cscope     .   cscope
  ":cs find". : >

	:cs find g ALIGN_SIZE

        ,
     .     
|cscope-|.

        ,  Vim
         . 
 ,        . 
      CTRL-T    
.

==============================================================================
5. 			     *cscope-limitations* *cscope-*

 cscope  Vim    ,  
 fork(), pipe(), execl()  waitpid().    , 
     Unix.

 , cscope     Win32.  
     cscope  Win32,
  :

    http://iamphet.nm.ru/cscope/index.html

 ,    :

    1.     cscope  8.   
      ?
    
    2.  |:tjump|        |:cstag| 
        (,   tselect 
    tjump).

==============================================================================
6.   		  *cscope-suggestions* *cscope-*

  .vimrc   (  ,   
 ): >

	if has("cscope")
		set csprg=/usr/local/bin/cscope
		set csto=0
		set cst
		set nocsverb
		"       
		if filereadable("cscope.out")
		    cs add cscope.out
		"     ,   
		" ,   
		elseif $CSCOPE_DB != ""
		    cs add $CSCOPE_DB
		endif
		set csverb
	endif

  'cscopetag',      :tag  :cstag.
   :tag, CTRL-]  "vim -t".     :tag
       ,    ctags, 
    cscope.

       tag 
      :cstag. ,   
  :cstag  CTRL-_    : >

	map <C-_> :cstag <C-R>=expand("<cword>")<CR><CR>

   cscope      ,
  ,       C.  
     : >

	map g<C-]> :cs find 3 <C-R>=expand("<cword>")<CR><CR>
	map g<C-\> :cs find 0 <C-R>=expand("<cword>")<CR><CR>

   CTRL-] (  )  CTRL-\ (
 )         C 
    cscope   .

     ,    
Vim/Cscope    Cscope (http://cscope.sourceforge.net/): >

	nmap <C-_>s :cs find s <C-R>=expand("<cword>")<CR><CR>
	nmap <C-_>g :cs find g <C-R>=expand("<cword>")<CR><CR>
	nmap <C-_>c :cs find c <C-R>=expand("<cword>")<CR><CR>
	nmap <C-_>t :cs find t <C-R>=expand("<cword>")<CR><CR>
	nmap <C-_>e :cs find e <C-R>=expand("<cword>")<CR><CR>
	nmap <C-_>f :cs find f <C-R>=expand("<cfile>")<CR><CR>
	nmap <C-_>i :cs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
	nmap <C-_>d :cs find d <C-R>=expand("<cword>")<CR><CR>

	"  'CTRL-'    
	"    Vim     
	"    .

	nmap <C-Space>s :scs find s <C-R>=expand("<cword>")<CR><CR>
	nmap <C-Space>g :scs find g <C-R>=expand("<cword>")<CR><CR>
	nmap <C-Space>c :scs find c <C-R>=expand("<cword>")<CR><CR>
	nmap <C-Space>t :scs find t <C-R>=expand("<cword>")<CR><CR>
	nmap <C-Space>e :scs find e <C-R>=expand("<cword>")<CR><CR>
	nmap <C-Space>f :scs find f <C-R>=expand("<cfile>")<CR><CR>
	nmap <C-Space>i :scs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
	nmap <C-Space>d :scs find d <C-R>=expand("<cword>")<CR><CR>

	"  CTRL- **     
	"   Vim  ,  .

	nmap <C-Space><C-Space>s
		\:vert scs find s <C-R>=expand("<cword>")<CR><CR>
	nmap <C-Space><C-Space>g
		\:vert scs find g <C-R>=expand("<cword>")<CR><CR>
	nmap <C-Space><C-Space>c
		\:vert scs find c <C-R>=expand("<cword>")<CR><CR>
	nmap <C-Space><C-Space>t
		\:vert scs find t <C-R>=expand("<cword>")<CR><CR>
	nmap <C-Space><C-Space>e
		\:vert scs find e <C-R>=expand("<cword>")<CR><CR>
	nmap <C-Space><C-Space>i
		\:vert scs find i ^<C-R>=expand("<cfile>")<CR>$<CR>
	nmap <C-Space><C-Space>d
		\:vert scs find d <C-R>=expand("<cword>")<CR><CR>

==============================================================================
7.     cscope	     *cscope-info* *cscope-*

    cscope (      ),  
  ţ    :
	
	http://cscope.sourceforge.net/

  SCO   BSD.

      cscope,    ģ 
.   ()  nvi:

	   13.3     
	 $400  AT&T Software Solutions.  +1-800-462-8146.

    cscope 13.x  mlscope 14.x ( cscope 
 C, C++, Java, lex, yacc,    ,
Ingres  SDL)        
World-Wide Exptools  :

	http://www.bell-labs.com/project/wwexptools/packages.html

 Solaris 2.x      C    
cscope.    ,   ,  /opt/SUNWspro/bin

  SGI    cscope.    
     :
	ftp://ftp.openage.com/pub/Sgi/Binaries/Cscope-13_3_tardist.gz
	https://toolbox.sgi.com/toolbox/utilities/cscope/
      ,     
  SGI toolbox.

          cscope,
 "cs".         Vim. 

   cscope  Vim     
<ackahn@netapp.com> (Andy Kahn).      
       cscope  nvi.  
   cscope  Vim, ,   .. 
   .

							        *cscope-win32*
 cscope  Win32   :
http://iamphet.nm.ru/cscope/index.html.

 Win32     <khorev@softlab.ru>.   
 ,   Win32,    .

==============================================================================
vim:tw=78:ts=8:ft=help:norl:
