-------------------------------------------------------
Sudo apt-Get install Vim
Sudo apt-Get install cscope
Sudo apt-Get install ctags
-------------------------------------------------------
1: cs1_rbkq
2: Run in VIM
CS add cscope. Out
3: CS find * XXX
--------------------------------------------------------
S: Find the symbols of the C code.
G: search for this definition.
D: Find the function called by this function.
C: Find the function that calls this function.
T: search for this string.
E: Find the current egrep mode.
F: Find this file.
I: Find the file that contains this file.
--------------------------------------------------------
Ctrl k: delete the part from the cursor to the end of the row
Ctrl u: delete the part from the cursor to the beginning of the line
Alt D: delete the part from the cursor to the end of the current word
Ctrl w: delete the part starting with the cursor to the current word
Ctrl a: move the cursor to the beginning of the line
Ctrl e: move the cursor to the end of the row
Alt A: move the cursor to the current word Header
Alt E: move the cursor to the end of the current word
Ctrl y: insert the recently deleted word
--------------------------------------------------------
CTRL +]: Jump to the Function Definition place where the function is called.
CTRL + T: return the last lookup location
--------------------------------------------------------
Ctags usage:
1. $ ctags-R * ($ is a Linux system shell prompt. This command has been described above)
2. $ vi-T tag (replace the tag with the variable or function name you want to find)
3.: TS (the command starting with ":" In tagslist is the command line mode command in VI)
4.: TP (TP note: tagspreview) --- this command is not commonly used and does not need to be remembered
5.: tn (TN mnemonic: tagsnext) --- this command is not commonly used and does not need to be remembered.
6. CTRL +] Jump to the definition of the function or struct where the cursor is located
7. CTRL + t return to search or jump
---------------------------------------------------------