其他分享
首页 > 其他分享> > gvim tagbar ctags安装

gvim tagbar ctags安装

作者:互联网

在gvim中如何打开右侧的窗口来显示文档中的变量和函数呢?tagbar

先安装ctags

Exuberant Ctags (sourceforge.net)

Exuberant Ctags download | SourceForge.net

因为我是windows7和gvim所以下载的是zip压缩包

解压后将其中的ctag.exe复制到gvim的安装目录(和gvim.exe一个路径)

其他系统

ubuntu

>sudo apt-get install ctags

mac

>brew install ctags

然后是安装tagbar

preservim/tagbar: Vim plugin that displays tags in a window, ordered by scope (github.com)

我使用的是pathegon,所以直接克隆到plugins目录即可

Put something like the following into your ~/.vimrc:

nmap <F8> :TagbarToggle<CR>

If you do this the F8 key will toggle the Tagbar window. You can of course use any shortcut you want. For more flexible ways to open and close the window (and the rest of the functionality) see the documentation using :help tagbar.

 

标签:gvim,tagbar,window,Exuberant,ctags,安装
来源: https://www.cnblogs.com/dogingate/p/15863013.html