2003년 11월 21일 금요일

ctags

man ctags
http://ctags.sourceforge.net/

설치
http://prdownloads.sourceforge.net/ctags/ctags-5.5.4.tar.gz
cd ~/local/src/
tar xzvf ctags-5.5.4.tar.gz
cd ctags-5.5.4
./configure --prefix=/home/ilashman/local/ctags-5.5.4
make
make install

실행
/home/ilashman/local/ctags-5.5.4/bin/ctags


$ cat ~/bin/maketag
#!/bin/sh
find . -type f | egrep "js$|nwz$|php$" > /tmp/maketagtempfile
~newhero/bin/ctags --langmap=php:+.nwz --sort=yes -f tags -L /tmp/maketagtempfile
rm /tmp/maketagtempfile

$ cat tags.sh
find . /usr/include /home/ilashman/local/src/mm-1.3.0 ../php4 -name '*.[ch]' | ctags -R --extra=fq -L -

$ cat ctags.sh
#!/bin/sh
ctags -R --extra=fq --langmap=php:+.nwz.js *

$ cat ctags.sh
#!/bin/sh
ctags -R --extra=fq --langmap=c++:+.i.inl . ~/local/src/ACE_wrappers/ace/

vim에서 ctag이용하기
vim -t tag
:ta 함수명
ctrl-]
ctrl-T

댓글 없음:

댓글 쓰기