как IDE для PHP: не выходит Tag Browsing

и другие vi-подобные редакторы

Модератор: /dev/random

Ответить
vladka
Сообщения: 15
ОС: debian

как IDE для PHP: не выходит Tag Browsing

Сообщение vladka »

пытаюсь использовать вим как IDE (для php =)

куру доку в нете
http://www.koch.ro/blog/index.php?/archive...-a-PHP-IDE.html

не выходит 4й пункт:

Tag Browsing with cscope (Identifier lookup)

Just like in a big IDE like eclipse, you can easily jump to the definitions of functions
and classes. Vim integrates cscope for the job (apt-get install cscope).

Build the taglist

Vim needs an index file for all identifiers. This file is build with
cscope. First we create the file cscope.files which tells cscope which file to
scan. In our case this are all files called *.php.

The -b option tells cscope to use the list from cscope.files:



cd project_dir

find . -name '*.php' > ./cscope.files

cscope -b

rm ./cscope.files


The shell commands from above left a file cscope.out in project_dir.

Now we tell vim to use the generated tagfile:

cscope add project_dir/cscope.out project_dir


Note that you have to add the project_dir as the second argument to cscope add!
install exuberant-ctags ( >= Version 5.7 ) and the taglist vim plugin. On debian you go
with:

apt-get install exuberant-ctags

vim-addons install taglist



если точнее то меня вводит в заблуждение фраза веделенная жирным шрифтом,
пробывал запускать как

:!cscope add pr_di/cscope.out pr_dir
но,
1 - изходя из записи cscope.out находиться в той же дириктории что и шелл
2 - запускаю из шела #cd ..; cscope add pr_di/cscope.out pr_dir - выводит сообщение об ошибке
3 - если из шела, то афтар забыл написать, так как потом использовать эту ф-ть cscope в vim =)

буду очень признателен за ответы
Спасибо сказали:
Ответить