How to navigate in large project in VIM

后端 未结 12 2474
温柔的废话
温柔的废话 2020-12-12 10:19

How do you manage big projects (hundreds of files) using only VIM?

I personally start having problems in any larger than small project.

  • is there any wa
12条回答
  •  情深已故
    2020-12-12 10:33

    VIM has excellent support for tags. Once you have created a tags file for your project, you can jump to a definition or declaration of a method, class, etc., including jumping across files, all inside the same editing session.

    Try

    :help tags
    

    To generate a tags file for C/C++, go to your shell prompt (I'm assuming your system is *nix/Cygwin) and type

    info ctags
    

    or

    ctags --help
    

提交回复
热议问题