Setup a simplified IDE on Linux OS(Vim +Ctags + Taglist)

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.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值