Tuesday, October 25, 2011

VIM - ETAGS/CSCOPE

VIM - ETAGS/CSCOPE
CTRL + \ + s [To go to a symbol]
CTRL + t  [To jump back]

CTRL + Spacebar + s [split horizontally]
CTRL + w + w [Browse windows]
CTRL + w + c [Close a window]
CTRL + w + o [Make the current window only one]
CTRL + w + s [Horizontal split]
CTRL + w + v [Vertical split]
CTRL + Spacebar CTRL + Spacebar + s [Split vertically]


Cscope database for linux kernel
LNX=/home/vinod/files/beagle/linux-3.0.4
    find  $LNX                                                                \
    -path "$LNX/arch/*" ! -path "$LNX/arch/arm*" -prune -o               \
    -path "$LNX/tmp*" -prune -o                                           \
    -path "$LNX/Documentation*" -prune -o                                 \
    -path "$LNX/scripts*" -prune -o                                       \
        -name "*.[chxsS]" -print >/home/vinod/files/beagle/linux-3.0.4/cscope.files

cscope -b -q -k -v


No comments: