Setup a simplified IDE on Linux OS(Vim +Ctags + Taglist)
I suppose you already has one Linux develop environment with VIM, if you don’t have this basic edit tool,please install one.
I will introduce environmentsetup process step by step:
1. Ctagsinstall
(which cancollect all source code symbols, and create symbol file so that can integratein VIM, you can jump between different source code files, if all the symboltable has been created)
a. Download Ctags install package (for example: ctags5.5)
Link:http://ctags.sourceforge.net/
b. Decompress the ctags5.5 tar package, and then enter thectags source code directory, use about follow three commands to install Ctags(makesure you have the root permission):
./configure
make
make install
c. Go to yourdevelopment work space; for example ./linux; use follow command to create ctagssymbol file as follow:
ctags –R
d. Add one VIM configuration in ~/.vimrc (which can let you findCtags file in any work space sub directory )
set tags=tags;/
Some frequently useful Ctags command list:
Ctrl-] jump to defined which cursor pointed
Ctrl-t jump back
man ctags help to find all ctags command
vim mode: help ctags help to find all ctags command
2. Taglistinstall
(which base onCtags can split Vim screen expediently )
a. Download Taglist install package (for example:taglist_46.zip)
Link: http://www.vim.org/scripts/script.php?script_id=273
b. Decompress the taglist_46.zip, and then copy Taglist fileto~/.vim; use follow command
cp –rf plugin doc ~/.vim
c. Set some shortcut in VIM configuration in~/.vimrc (which can let you openor close taglist expediently)
let Tlist_Show_One_File = 1
let Tlist_Exit_OnlyWindow = 1
let Tlist_Use_Right_Window = 1
let Tlist_WinHeight = 100
let Tlist_WinWidth = 60
let Tlist_Ctags_Cmd = '/usr/bin/ctags'
map <silent> <F9> :TlistToggle<cr>
Some useful about Taglist command list:
Ctrl+w or click cursor exchange your screen
If you want to use mouse select symbol, you must enable mouseat Vim scan view(add configuration at ~/.vimrc):
set mouse=n
set selection=exclusive
set selectmode=mouse,key
Choose the symbol and input enter can go jump to which it defined
Any other advanced usage about Vim/Ctags/Taglist please reference help document, and I maybe update some useful usage which i think in this page later.