vim tags

bljswpu 2013-09-07 11:03:51
在Projetc目录下 我有 A.cpp B.cpp tags文件
其中main函数在A.cpp文件中
在命令vim -t main 想定位main在那个文件 但是系统提示 找不到tag:main
...全文
71 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
mymtom 2013-09-11
  • 打赏
  • 举报
回复
引用 2 楼 mymtom 的回复:
ctags -R --c++-kinds=+px --fields=+iaS --extra=+q --language-force=c++
然后再试试vim -t main
mymtom 2013-09-11
  • 打赏
  • 举报
回复
ctags -R --c++-kinds=+px --fields=+iaS --extra=+q --language-force=c++
ceclinux 2013-09-08
  • 打赏
  • 举报
回复
这个正常应该有的吧
gvim常用插件及其配置文件 支持c,perl,python,latex。 需要自己安装ctags .vim: after compiler doc indent ltags perl-support skeleton syntax autoload c-support ftdetect keymap Makefile plugin snipMate.vim.ct tools colors CVIMSYN ftplugin latextags Makefile.in README.csupport snippets .vim/after: ftplugin plugin syntax .vim/after/ftplugin: c_snippets.vim java_snippets.vim python_pydiction.vim python_snippets.vim sh_snippets.vim .vim/after/plugin: .vim/after/syntax: cpp.vim c.vim java.vim .vim/autoload: acp.vim perlsupportgui.vim perlsupportprofiling.vim perlsupportregex.vim snipMate.vim .vim/colors: desertEx.vim peachpuff.vim zenburn.vim .vim/compiler: tex.vim .vim/c-support: codesnippets doc rc scripts templates wordlists .vim/c-support/codesnippets: calloc_double_matrix.c main.cc print_array.cc.noindent calloc_int_matrix.c Makefile print_double_array.c.noindent main.c Makefile.multi-target.template print_int_array.c.noindent .vim/c-support/doc: ChangeLog c-hotkeys.pdf c-hotkeys.tex .vim/c-support/rc: customization.ctags customization.gvimrc customization.indent.pro customization.vimrc .vim/c-support/scripts: wrapper.sh .vim/c-support/templates: c.comments.template cpp.comments.template cpp.preprocessor.template c.statements.template c.cpp.template cpp.cpp.template cpp.statements.template Templates c.idioms.template cpp.idioms.template c.preprocessor.template Templates~ .vim/c-support/wordlists: c-c++-keywords.list c-c++-keywords.list.bak k+r.list stl_index.list .vim/CVIMSYN: engspchk.contraction engspchk.dialect engspchk.dict engspchk.match engspchk.proper engspchk.rare .vim/doc: acp.jax latexhelp.txt latex-suite-quickstart.css Makefile taglist.txt acp.txt latex-suite latex-suite-quickstart.html Makefile.in tags catalog.xml la
"Set Tags "{{{ set tags=./tags 解压到~目录下, 插件若有更新,可到插件目录下执行git pull 每个插件的目录下的conf.vim中有更多的设置及说明 "FuzzyFinder fuf.vim模糊查找 source ~/.vim/bundle/fuzzyfinder/conf.vim "NERD_commenter.vim source ~/.vim/bundle/nerdcommenter/conf.vim "单独切换打开NERD_tree source ~/.vim/bundle/nerdtree/conf.vim "neocomplcache.vim source ~/.vim/bundle/neocomplcache/conf.vim "unite.vim "source ~/.vim/bundle/unite.vim/conf.vim "neosnippet.vim source ~/.vim/bundle/neosnippet/conf.vim "vimshell.vim, vim中使用shell, 最好一款 source ~/.vim/bundle/vimshell/conf.vim "omnicppcomplete.vim source ~/.vim/bundle/omnicppcomplete/conf.vim "code_complete.vim source ~/.vim/bundle/code_complete/conf.vim "clang_complete.vim "source ~/.vim/bundle/clang_complete/conf.vim "PowerLine.vim 状态栏更绚丽 source ~/.vim/bundle/powerline/conf.vim "lookupfile插件默认会使用ctags产生的tag来查找,效率很低,使用下面脚本生成filenametags source ~/.vim/bundle/lookupfile/conf.vim "CCtree.Vim C Call-Tree Explorer 源码浏览工具 关系树 (赞) source ~/.vim/bundle/cctree/conf.vim "tagbar 样式比taglist好看 source ~/.vim/bundle/tagbar/conf.vim "errormarker.vim source ~/.vim/bundle/errormarker/conf.vim "vcscommand 各种版本控制 svn cvs git hg source ~/.vim/bundle/vcscommand/conf.vim "F7 Grep.vim 查找字符 source ~/.vim/bundle/grep/conf.vim "GoldenView 窗口切割编辑利器 "source ~/.vim/bundle/GoldenView/conf.vim

23,114

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧