Vim and ctags: tag filenames

后端 未结 4 1302
刺人心
刺人心 2021-02-12 23:34

Is it possible to have ctags generate tags for filenames as well? I would like to be able to jump to a file given a filename. :find seems to be awfully slow compare to tags...

4条回答
  •  终归单人心
    2021-02-13 00:04

    You can also use cscope:

    :cs find f 
    

    or, if you've setup cscope in vim as recommended in :help cscope, put the cursor on top of a filename, and press f.

提交回复
热议问题