Oh~!
Thank you this detail help.they are many helpful for me.
yes.I solve this question..I to google this quesstion has 2 days.Thank you
help me saving many time to programe

2009/5/1 David Fishburn <dfishburn....@gmail.com>

>
> On Fri, May 1, 2009 at 3:37 AM, SamPeng <sampen...@gmail.com> wrote:
> >    my cscope and ctag don't working with php.
> >    use C-] don't jump any function or var.Have one error:don't have this
> > tags.
> >   ctag -R and cscope -R I test this cmd.not have any help.
>
> What OS are you running this on?
>
> I usually do the following:
>    cd /root/dir/where/php/is
>
>    dir /s/b *.php  > cscope.files    (Windows)
>    find -name *.php > cscope.files   (Unix)
>
>    cscope -b (create the cscope database)
>
> In Vim:
>    :cd /root/dir/where/php/is
>    :cs add cscope.out . -C
>    " I use the -C for case insensitivity
>
> Then I primarily use these 2 mappings:
>    nnoremap g<C-\> :silent! cs find 0
> <C-R>=expand("<cword>")<CR><CR>:cwindow<CR>
>    vnoremap <silent> g<c-\> :<C-U>
>                  \:let old_reg=getreg('"')<bar>
>                  \:let old_regmode=getregtype('"')<cr>
>                  \gvy
>                  \:silent! cs find s <C-R>=@"<cr><cr>
>                  \:call setreg('"', old_reg, old_regmode)<cr>:cwindow<CR>
>
> Notice this is using the cs find command, since cscope doesn't
> understand PHP, it can be used to find the methods and what not
> though.  I do the same for SQL files and Perl.
>
> You can map the above to anything you want, it is hard to find key
> combinations which are not already useful though!
>
> HTH,
> Dave
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to