ctags

Vim - ctags: tag not found

天大地大妈咪最大 提交于 2019-11-29 21:03:31
I want to use Ctags for a Zend framework project. I executed this command : ctags -R ./* ../ZendFramework/* to create a list of tags, but the problem is when I press Ctrl-] on a class or method I get this error: ctags: tag not found I checked the tags file and all classes/methods/variables are listed. The tags files is located in the root of the project. Should I load it manullay when I open a file? Yes, you should tell Vim where to find your tags file with something like: :set tags=/path/to/tags This is not very optimal, though. This line in your ~/.vimrc should help: set tags=./tags,tags;

VIM: More precise C/C++ code parsing solutions?

心已入冬 提交于 2019-11-29 21:00:35
Pre: I've been working in VIM for like a year already. Lots of great things: combinations, scripts. Whenever I'm editing something in a different editor, I feel sluggish/uncomfortable without VIM's navigation. The problem: The thing that really bothers me most of all is source code navigation using existing tools (ctags, cscope). Often, ctags can't find the declaration of a variable, cscope as opposed to ctags finds all definitions with the same variable name. Same craziness with call tree navigation, finding forward declarations along with a single class definition etc. Compared to MS

How to exclude multiple directories with Exuberant ctags?

倾然丶 夕夏残阳落幕 提交于 2019-11-29 20:35:46
I have looked and tried to use exuberant ctags with no luck with what I want to do. I am on a mac trying to work in a project where I want to exclude such directories as .git, node_modules, test, etc. When I try something like ctags -R --exclude=[.git, node_modules, test] I get nothing in return. I really only need to have it run in my core directory. Any ideas on how to accomplish this? The --exclude option does not expect a list of files. According to ctags 's man page, "This option may be specified as many times as desired." So, it's like this: ctags -R --exclude=.git --exclude=node_modules

Alternatives to Ctags/Cscope with Objective-c?

南笙酒味 提交于 2019-11-29 19:55:16
Are there any alternatives to ctags and cscope with Objective-c support. This does pertain to cocoa development, so inevitably it seems I will be using Xcode (and probably should). I was just wondering what are my Vim options. Maybe there is some type of plugin system like eclim, but for xcode? EDIT So it seems that other than updating ctags to support objective-c, I'm out of luck. Does anyone know if cscope is the same? Vincent Guerci a long time after this question, " playing " with vim, I wanted ObjC support, especially with taglist plugin. I found that question, then digged a bit, and here

Do you know an alternative ctags generator for Ruby

寵の児 提交于 2019-11-29 16:43:41
问题 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.

Vim : how to index a plain text file?

眉间皱痕 提交于 2019-11-29 11:22:39
Is it possible to index a plain text file (a book) in vim such as : 1. This line contains the words : London, Berlin, Paris 2. In this line, I write about : New-York, London, Berlin ... 100. And, to conclude, my last comments about : New-York, Paris and have this resulting index : Berlin : 1 London : 1, 2 New-York : 2, ..., 100 Paris : 1, ..., 100 and, if it is possible, what is the tagging method ? I have read about ctags, but it seems to be dedicated to specific languages (and to say the truth, a bit overkill for my needs) I took the liberty of writing the following function, based on using

ctags ignore lists for libc6, libstdc++ and boost

倾然丶 夕夏残阳落幕 提交于 2019-11-29 05:15:42
问题 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

Ubuntu11.04 下配置一个高效的PHP开发环境GVIM

孤街浪徒 提交于 2019-11-29 04:07:19
Vim本质上只是一个编辑器。但只要配合一些适当的插件,vim也能变成一个全功能的IDE。笔者使用vim已经有挺长一段时间了,经过反复的试验,配置了一个高效的PHP开发环境,实为居家旅行、谋财害命、杀人越货必备之良品。 安装Vim GVIM 普通方式安装 sudo apt-get install vim sudo apt-get install vim-gtk vim-doc cscope 编译安装7.3 稳定 版: www.kukaka.org/home/showonews/344 编译安装7.3 最新 版: www.kukaka.org/home/showonews/370 卸载Vim GVIM 普通安装方式卸载 sudo apt-get remove --purge vim (--purge 是完全删除,会连配置文件一起删除) sudo apt-get remove --purge vim-gtk vim-doc cscope sudo apt-get clean 编译安装方式卸载 进入之前编译安装时的目录:make uninstall 开始配置vim Linux 下 vim 默认配置文件 /etc/vim/vimrc 用户默认配置文件 ~/.vimrc 如果想一次配置,所有用户都能使用,那就修改 /etc/vim/vimrc,如果只想当前用户可以使用,则修改 ~/.vimrc

run a shell command (ctags) in cmake and make

十年热恋 提交于 2019-11-28 21:28:37
I'm coding a c++ project in vim. I'd like to run a ctags command ( ctags -R --c++-kinds=+p --fields=+iaS --extra=+q . ) to generate references when I run make. I think the way to do it is to use add_custom_command but I get confused on how to integrate it into CMakeLists.txt . Daniel Blezek The most basic way to do this is: set_source_files_properties( tags PROPERTIES GENERATED true) add_custom_command ( OUTPUT tags COMMAND ctags -R --c++-kinds=+p --fields=+iaS --extra=+q . WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} ) add_executable ( MyProjectOutput tags ) The first line tells CMake that tags will

ctag database for Go

我只是一个虾纸丫 提交于 2019-11-28 17:51:41
问题 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