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. 

   
  1. website: The NERD tree : A tree explorer plugin for navigating the filesystem
  2. download NERD_tree.zip
  3. unzip NERD_tree.zip 
  4. mkdir -p ~/.vim/plugin 
  5. mv plugin/NERD_tree.vim ~/.vim/plugin 
  1. vim ~/.vimrc
  2. 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



reference:
Tsung's Blog: http://blog.longwin.com.tw/2009/02/vim-tree-explorer-nerdtree-plugin-2009/

留言

這個網誌中的熱門文章

Raspberry Pi (ARMv6)上自幹一個微小作業系統

Linux VLAN 筆記

C語言,大數運算,階層筆記