1.apt-get install exuberant-ctags 2.在生成目录后,输入命令ctags -R *,你会发现多了一个tags文件,这个就是索引文件 3./etc/vim/vimrc 最后一行加入:set tags=路径.../tags 4.重新进入终端