2009年9月22日星期二

VIM cctree config

cctree.vim + cscope provide a very good source code tracing, but the default key map ctrl+'\','>' or '<' is really too much for me.
I just add the following line to CCTreeBufferKeyMappingsCreate in cctree.vim , which only use ctrl+'f', 'r', 'a', 'q'. These hot keys may crash with anothers, but it is suitable for me.

exec 'nnoremap :CCTreeTraceReverse ='.func_expr.''
exec 'nnoremap :CCTreeTraceForward ='.func_expr.''
nnoremap :CCTreeRecurseDepthPlus
nnoremap :CCTreeRecurseDepthMinus

沒有留言:

發佈留言