ctags

ctags and Fortran's interfaces

落爺英雄遲暮 提交于 2019-12-04 12:49:39
I'm wondering how to get ctags working with interfaces in Fortran, eg: INTERFACE SOME_ROUTINE MODULE SOME_ROUTINE_A MODULE SOME_ROUTINE_B END SOME_ROUTINE So that either SOME_ROUTINE_A or SOME_ROUTINE_B is called depending on the parameters passed to the subroutine. If I've got my cursor over a call to SOME_ROUTINE in Vim, and hit C-], I get a "tag not found: SOME_ROUTINE" error, and if I check my ctags file they're not in there. The weird thing is that I'm also using the Vim taglist plugin, and the interfaces in a source file will show up in the taglist window. The only clue I could find to

how to make vim ctags works for modern javascript

烂漫一生 提交于 2019-12-04 07:50:16
问题 I am using vim and ctags to get taglist. but for javascript, it does not works for this convention MyClass.extend({ xxx: function(){ }, ... }) MyClass.prototype = { method : function(){ } } MyClass.prototype.method = function () { } 回答1: Like the others had said: DoctorJS (formerly jsctags ) is the best option. However, integrating it with Vim by writing custom wrappers or using Vim-taglist-plus plugin, which isn't currently working, aren't good solutions. The easiest way I've found is to

ctags with taglist in vim and python virtualenv

删除回忆录丶 提交于 2019-12-04 07:43:07
I use virtualenv and django in my projects and I am trying to find a more efficient way to browse django source code. As advised here - Tools to help developers reading class hierarchy faster - I got myself set-up with ctags via sudo port -v install ctags and installed the vim plugin taglist via https://github.com/vim-scripts/taglist.vim Unfortunately, it seems that ctags cannot locate my django's class when I attempted to "jump" to view a class via Ctrl+] . Any suggestions how I can get ctags to read python source code located in my virtualenv? UPDATES With further experimentation, I realized

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

纵饮孤独 提交于 2019-12-04 07:25:01
问题 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

Jumping back to a previously opened file in Vim

落花浮王杯 提交于 2019-12-04 00:00:40
While using Vim I'll sometimes want to look at a function definition or a struct definition, so I'll use C-] to jump to it. However, there are a few problems I run into. First off, I don't know how to jump back easily. It appears the previous file I was in closes and I'm now in the new one. Is there a way to jump back, or keep a stack of open files that I can pop back to or something? Another thing I've noticed that when I have a change in the current file I need to save it because, like a mentioned a moment ago, my current file is being closed before the next one opens. And sometimes I want

linuxC可以使用man查看方法说明,但是没有查看结构体的方法,可以使用ctags查看

倾然丶 夕夏残阳落幕 提交于 2019-12-03 21:30:16
第一安装ctags软件1.安装ctags  wget http://prdownloads.sourceforge.net/ctags/ctags-5.8.tar.gz 2.解压安装  tar -zxvf ctags-5.8.tar.gz  cd ctags-5.83.安装  执行配置 ./configure --prefix=/usr/local/ctags  手动创建目录sudo mkdir /usr/local/ctags 添加权限sudo chmod 777 /usr/local/ctags  --老是出现创建目录权限文件问题,所以就手动创建了  执行make && make install 即可  添加路径sudo vi /etc/bash.bashrc 添加 export PATH=/usr/local/ctags/bin:$PATH第二生成ctags文档  1.进入头文件目录cd /usr/include  2.执行sudo ctags -R生成文档  3.输入vi -t [结构体] 即可跳转到该结构体定义的地方,比如 vi -t dirent 查看dirent结构体定义另外一种简单的方法就是使用Visual Studio编写代码,自然就可以直接ctrl点击查看了。。。 来源: https://www.cnblogs.com/yongfengnice/p

Sublime_ctags函数跳转

流过昼夜 提交于 2019-12-03 19:17:33
(windows环境下)看了很多安装ctags的方法 sublime text 2或3中安装完ctags ,对函数进行两次ctrl+T,发现不能跳转,报错: can't find any relevent tags file ------------------------ 解决方法 ---------------------------------------------------------- 原因是因为没有生成.tags索引文件 生成方法有两种 : 1. sublime软件中 ,功能菜单File->Open Folder 打开要分析的目标文件夹,从左侧边栏中点击打开任意程序文件,按下 crtl+T、ctrl+R组合键 (即:最上行功能菜单Find->Ctags->rebuild tags),这时可以看到目标文件夹中生成了.tags索引文件,以及.tags_sorted_by_file。 2. Win+R :输入指令cmd,回车。cd指令进入要分析的目标文件夹,输入:ctags -R -f .tags 手动生成.tags文件。与方法一不同的是,不会生成.tags_sorted_by_file,不过在使用中尚未发现区别,对此欢迎大家完善补充。 附文: ------------------------- 以下是windows平台(win8可用)安装ctags完整步骤 ------

Exuberant Ctags with R

懵懂的女人 提交于 2019-12-03 11:07:03
问题 Is there any documented use of ctags with R? Would this be useful? Would it be difficult to implement? Specifically, I've just started using Vim. It would be cool to be able to write an R function in one file, use the function in another file (e.g., an Rnw file, test file, or some other script), and be able to use Ctrl+] to navigate to the function source. Update: I've since stumbled on the rtags function, although it suggests that it is emacs specific. 回答1: This is a modification of Henrico

Vim and Ctags: Ignoring certain files while generating tags

浪子不回头ぞ 提交于 2019-12-03 10:45:23
问题 I have a folder llvm2.9 in which i ran this command. $> ctags -R --sort=1 --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ This was indexing methods in *.html files also which were present in llvm2.9/docs. I found this out because when i pressed ctrl-] for some class, it went to the html file. How do i force ctags to use .cpp/.h files alone or ignore a particular directory. Thanks 回答1: You can exclude a filetype using --exclude=*.html 回答2: If you need to exclude more than just

ctags and R regex

匿名 (未验证) 提交于 2019-12-03 09:52:54
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to use ctags with R. Using this answer I've added --langdef=R --langmap=r:.R.r --regex-R=/^[ \t]*"?([.A-Za-z][.A-Za-z0-9_]*)"?[ \t]*<-[ \t]function/\1/f,Functions/ --regex-R=/^"?([.A-Za-z][.A-Za-z0-9_]*)"?[ \t]*<-[ \t][^f][^u][^n][^c][^t][^i][^o][^n]/\1/g,GlobalVars/ --regex-R=/[ \t]"?([.A-Za-z][.A-Za-z0-9_]*)"?[ \t]*<-[ \t][^f][^u][^n][^c][^t][^i][^o][^n]/\1/v,FunctionVariables to my .ctags file. However when trying to generate tags with the following R file x <- 1 foo <- function () { y <- 2 return(y) } Only the function foo is