vim + cscope + ctags + nerdtree + taglist + SrcExpl+trinity, c ya source Insight.
Bought a MACbook air installed ubuntu+LXDE, time to say good bye to windows & source Insight.
I tried eclipse to develop C about 1 month before, eclipse is nice tool to trace code, but somehow I still feel eclipse a bit laggy.
Finally, I use VIM, because both of MAC OS X and Linux have VIM.
- website: The NERD tree : A tree explorer plugin for navigating the filesystem
- download NERD_tree.zip
- unzip NERD_tree.zip
- mkdir -p ~/.vim/plugin
- mv plugin/NERD_tree.vim ~/.vim/plugin
- vim ~/.vimrc
- add this line: nnoremap
:NERDTree
same producer to install taglist, trinity, and SrcExpl.
You may need a script to generate cscope and ctags index files.
CSCOPE_FILE=cscope.out
if [ -n "$1" ]; then
echo "Source code directory: " $1
echo "Create file map : " $CSCOPE_FILE
find $1 -name "*.c" -o -name "*.c" -o -name "*.h" -o -name "*.c" -o -name "*.S" >
$CSCOPE_FILE
cscope -bkq -i $CSCOPE_FILE
ctags -R --exclude=.svn
else
echo "Please key-in path of project"
fi
You may need a script to generate cscope and ctags index files.
CSCOPE_FILE=cscope.out
if [ -n "$1" ]; then
echo "Source code directory: " $1
echo "Create file map : " $CSCOPE_FILE
find $1 -name "*.c" -o -name "*.c" -o -name "*.h" -o -name "*.c" -o -name "*.S" >
$CSCOPE_FILE
cscope -bkq -i $CSCOPE_FILE
ctags -R --exclude=.svn
else
echo "Please key-in path of project"
fi
reference:
Tsung's Blog: http://blog.longwin.com.tw/2009/02/vim-tree-explorer-nerdtree-plugin-2009/
留言