nerdtree-tagbar-combined


Ⅰ. 插件描述

NERDTree and Tagbar combined in one window

Ⅱ. 基本信息

创建日期:  2014-05-03
使用用户:  11
Github星:  4
插件作者:  Patrick Seewald

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'pseewald/nerdtree-tagbar-combined'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'pseewald/nerdtree-tagbar-combined'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'pseewald/nerdtree-tagbar-combined'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/pseewald/nerdtree-tagbar-combined

Ⅳ. 文档说明

#Tagbar and NERDTree in one vertical split window#

This is a hack to open Tagbar and NERDTree in the same split window.

-----------------------------
| N   |                     |
| E   |                     |
| R T |                     |
| D r |                     |
|   e |                     |
|   e |                     |
|-----|     main buffer     |
|  T  |                     |
|  a  |                     |
|  g  |                     |
|  b  |                     |
|  a  |                     |
|  r  |                     |
-----------------------------

Dependencies:

Usage:

Put something like

nmap <F7> :ToggleNERDTreeAndTagbar<CR>

in your vimrc, use <F7> to toggle NERDTree and Tagbar.
Use ctrl-w w to move cursor between buffer, nerdtree and tagbar.

Issues:

Currently known issues:

  • fails if you navigate from tagbar to NERDTree and then open a file in a vertical split. Solution: only use ctrl-w w for navigation.

Acknowledgements

This is a fork of ToggleNERDTreeAndTagbar.

添加新评论