ctags

How to automatically update tag file in vim?

百般思念 提交于 2019-12-02 14:15:02
I use vim C++ tag file for navigation using Ctrl-]. The problem is whenever some file gets modified, the links are no longer valid and I have to re-run ctags and update the tag file. Our code base is huge and it takes quite a while for generating tag file. Is there any tool which periodically updates the tag file in background? Can I configure VIM to do the same? I use gvim under Windows. Further to Blixtor's answer, you'll need to think a little carefully about the design of the script. I'd recommend segregating the design such that the autocommand uses the Windows "start" command or similar

Vim: Difficulty setting up ctags. Source in subdirectories don't see tags file in project root

亡梦爱人 提交于 2019-12-02 13:56:42
I'm trying to get setup with (exuberant) ctags on Vim today and am having difficulty getting it to work properly. I generate my ctags file on the command line with with: cd myproj ctags -R This puts the tags file in myproj root. However, Vim only seems to read from this tags file when I'm working on source that reside in root. As I navigate to deeper directories, if I try to jump to a tag using <C-]> , I get: E433: No tags file E426: tag not found: MyClassName I've verified that MyClassName does have a tag in the tags file, it's just that Vim doesn't see it. Can someone please explain how to

ctags error: “ctags: Unknown option: -p”

爱⌒轻易说出口 提交于 2019-12-01 09:36:02
问题 I've searched for this (exact) error, but I can't find any mention of it on the web. Basically, I'm trying to install ctags (I've never used it before) on OSX Snow Leopard. Here's what I've done: I downloaded the latest source package (version 5.8) from here: http://ctags.sourceforge.net/ Per the INSTALL instructions, I've run configure/make/make install. This installs a ctags binary to /usr/local/bin/. If I cd into /usr/local/bin/ and run ./ctags (with no args), I get this: ctags: Unknown

Do you know an alternative ctags generator for Ruby

倖福魔咒の 提交于 2019-11-30 11:10:25
Exumerant Ctags does not work well with Ruby, you can see there are many hacks in the ruby.c code and basically it fails recognizing many cases. One of the most important is this bit: class SomeModule::SomeClass end Ctags generates: SomeModule someclass.rb /^class SomeModule::SomeClass$/;" c which is wrong. The correct and expected entry is: SomeClass someclass.rb /^class SomeModule::SomeClass$/;" c This is very limiting. There are some patches for ctags available which does not work, e.g. https://github.com/xtao/overlay/blob/master/dev-util/ctags/files/ctags-5.5.4-ruby-classes.patch but

VIM编辑器支持Python开发环境(Vim+Ctags+Taglist)

不问归期 提交于 2019-11-30 09:25:44
在Linux下用VI编辑器进行Python开发,有必要对VI编辑器进行一些配置,使其具备以下特性: 1、 加强的 Python 语法高亮显示; 2、对脚本、项目生成 ctag 序列; 3、在 vim 中显示 ctag 序列列表; 4、 Python 函数、类的自动补全; 5、Python 代码自动折叠; 一、准备 本文以 CentOS 5.6 为例对系统默认自带的 vim 进行配置。在开始之前需要确认系统已经安装了以下 RPM 包:vim-enhanced、ctags。 1. 配置 vim alias,使 vim 成为默认的 vi 编辑器: # echo alias vi=\'vim\' >> ~/.bashrc # source ~/.bashrc 2. 复制默认的 .vimrc 初始化文件: # cp /usr/share/vim/vim70/vimrc_example.vim ~/.vimrc # vi ~/.vimrc 编辑用户VI环境,添加如下配置: set tabstop=4 set softtabstop=4 set shiftwidth=4 set expandtab set autoindent set foldmethod=indent 这样,我们就完成了对 vim 的一些前期准备。下面开始进行 vim Python IDE 环境的配置。 二、Python

Python开发环境配置 Vim + Ctags+ TagList

ε祈祈猫儿з 提交于 2019-11-30 09:25:28
在 Linux 下对 vim 进行一些配置,使之支持如下特性: 1. 加强的 Python 语法高亮显示; 2. 对脚本、项目生成 ctag 序列; 3. 在 vim 中显示 ctag 序列列表; 4. Python 函数、类的自动补全; 5. Python 代码自动折叠; 一、准备 本文以 CentOS 5.6 为例对系统默认自带的 vim 进行配置。在开始之前需要确认系统已经安装了以下 RPM 包:vim-enhanced、ctags。 1. 配置 vim alias,使 vim 成为默认的 vi 编辑器: # echo alias vi=\'vim\' >> ~/.bashrc # source ~/.bashrc 2. 复制默认的 .vimrc 初始化文件: # cp /usr/share/vim/vim70/vimrc_example.vim ~/.vimrc # vi ~/.vimrc 可以添加一些配置: 1 2 3 4 5 6 set tabstop = 4 set softtabstop = 4 set shiftwidth = 4 set expandtab set autoindent set number 这样,我们就完成了对 vim 的一些前期准备。下面开始进行 vim Python IDE 环境的配置。 二、Python IDE 环境配置 1. 加强

ctags ignore lists for libc6, libstdc++ and boost

随声附和 提交于 2019-11-30 06:32:18
I use ctags with vim and the OmniCppComplete plugin. Currently when generating my tags I do it individually for each library. For libc6 I use the following list of tokens / macros in a file named libc6-ignore to ignore during processing: __attribute__ __attribute_deprecated__ __attribute_format_arg__ __attribute_format_strfmon__ __attribute_malloc__ __attribute_noinline__ __attribute_pure__ __attribute_used__ __attribute_warn_unused_result__ __wur __THROW __nonnull+ Am I missing any other tokens I should be ignoring and should I be using this same list or a different one when generating tags

Is there an alternative to ctags that works better? [closed]

↘锁芯ラ 提交于 2019-11-30 06:17:42
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 months ago . I have just discovered the taglist plugin for vim, and read about how to use it with ctags. However, disappointingly ctags is a very simple parser. Is there an alternative that is more complete? Specifically I'm looking for something that: expands #define(x, y) x ## y style macros for function declarations

How to use multiple tabs when tagging to a function in Vim

天涯浪子 提交于 2019-11-30 05:00:26
I use ctags with my Vim and I rely heavily on C-] and C-T to tag back and froth between various functions in my project. But if the function is in a different file, I'd like Vim to automatically open it in a new tab instead of the current tab. If I pop my tag stack using the C-T, I'd like it go back to the original tab where I pressed by C-] instead of changing the file in the current tab. I don't like to have the same file opened in multiple tabs in Vim. This is the normal behavior for most IDEs and I am wondering if there is a way to do this in Vim? nmap <C-Enter> <C-w><C-]><C-w>T Does this

ctag database for Go

不羁的心 提交于 2019-11-29 21:36:12
How to generate tags file for Go source In mac, I installed exuberant ctags , and tried the below command in source directory ctags -f gosource.tags -R `pwd` But, it doesn't consider *.go files. Do I have to use -h option? But, isn't it only for header files, as per the manual? Please give me the correct command so that I can use the tags file with vim. I also prefer absolute path so that I can keep the file anywhere Thanks. Edit: I assumed current ctags support Go, seeing http://groups.google.com/group/golang-nuts/browse_thread/thread/3a4848db231b02c9 . but, http://ctags.sourceforge.net