Menu Home

mac下vim + taglist + ctags

mac下vim + taglist + ctags
1 . 下载 taglist http://www.vim.org/scripts/script.php?script_id=273
2. 解压缩后拷贝 plugin和doc文件到~/.vim文件夹,进入doc文件夹,运行vim ,输入命令:helptags .

3. 因为mac自带的ctags程序不是exuberant ctags, 所以使用时会出现问题,需要自己下载ctags编译安装到非/usr/bin 目录下:

http://sourceforge.net/projects/ctags/files/ctags/5.8/ctags-5.8.tar.gz/download

4.打开vimrc配置文件加入ctags路径:let Tlist_Ctags_Cmd=’/Users/xxx/bin/ctags’

5.在vimrc里配置taglist :

let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Use_Right_Window=1

6. 打开vim,可以用命令 :Tlist

7. 我的vimrc配置:

syntax on
set nu
set cindent
set smartindent
set showmatch
set incsearch
set shiftwidth=4
set ruler
set tabstop=4
set title
set smarttab
set fdm=indent
filetype on
set autoindent
let Tlist_Ctags_Cmd='/Users/xxx/bin/ctags'
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Use_Right_Window=1

6 replies

  1. I precisely desired to say thanks once again. I am not sure the things that I would’ve made to happen without those information provided by you on that concern. It actually was the frightful condition in my position, however , finding out your expert way you managed the issue made me to jump over fulfillment. I’m just happier for the support as well as believe you know what an amazing job you were carrying out training many people through the use of a blog. More than likely you haven’t encountered all of us.

  2. I actually wanted to jot down a word to appreciate you for those wonderful ways you are posting at this site. My considerable internet look up has at the end of the day been paid with really good ideas to talk about with my best friends. I would say that we visitors are extremely endowed to exist in a decent website with very many wonderful people with valuable solutions. I feel very much privileged to have come across the web page and look forward to many more pleasurable times reading here. Thank you again for a lot of things.

  3. I together with my buddies came looking through the good secrets from your website and then the sudden I got a terrible feeling I had not expressed respect to the website owner for those secrets. My people had been certainly excited to read through them and have now in fact been using those things. Appreciate your turning out to be considerably kind and then for making a choice on this kind of ideal things millions of individuals are really wanting to discover. Our own sincere apologies for not expressing appreciation to earlier.

  4. I have to express my appreciation to the writer just for rescuing me from this type of setting. As a result of looking out through the the web and finding suggestions that were not pleasant, I believed my entire life was done. Living devoid of the approaches to the difficulties you’ve solved through your review is a serious case, as well as those that could have adversely affected my career if I hadn’t noticed your web page. Your primary competence and kindness in controlling every part was very helpful. I’m not sure what I would have done if I had not encountered such a thing like this. I am able to now look forward to my future. Thanks a lot very much for this reliable and results-oriented guide. I won’t hesitate to propose the website to anybody who would like assistance about this matter.

  5. I want to express some thanks to this writer just for rescuing me from this type of problem. Because of browsing through the the net and getting things which were not pleasant, I figured my life was done. Being alive minus the approaches to the difficulties you’ve resolved by means of your good article is a critical case, as well as the ones which might have in a negative way affected my career if I had not come across your site. Your actual expertise and kindness in playing with all the stuff was helpful. I am not sure what I would’ve done if I had not discovered such a subject like this. It’s possible to at this moment relish my future. Thanks a lot very much for this reliable and effective help. I won’t think twice to recommend the website to any person who desires guide on this issue.

Leave a Reply