Ⅰ. 插件描述
A (G)Vim plugin which build the trinity of Source Explorer, TagList and NERD tree to be an IDE for software development.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'wesleyche/trinity'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'wesleyche/trinity'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'wesleyche/trinity'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/wesleyche/trinity
Ⅳ. 文档说明
Trinity
The Trinity plugin manages Source Explorer, Taglist and NERD Tree, and build them as a great IDE.
Features
- Automatic Display of Declarations in the Context Window on the bottom in the (G)VIM window using the Source Explorer:
https://www.vim.org/scripts/script.php?script_id=2179 - Symbol Windows For Each File on the left in the (G)VIM window (G)VIM using the Taglist:
https://www.vim.org/scripts/script.php?script_id=273 - Quick Access to All Files on the right in the (G)VIM window using the NERD Tree:
https://www.vim.org/scripts/script.php?script_id=1658
Installation
- Place the Trinity files (trinity.vim and NERD_tree.vim) in your Vim directory (such as ~/.vim)
or have it installed by a bundle manager like Vundle or NeoBundle. - Open the three plugins together with :TrinityToggleAll or map these
commands to keys in your .vimrc (Settings Example)
Requirements
Trinity requires:
- Vim 7.0 or higher
Screenshots
Left window is Taglist, Bottom window is Source Explorer, and Right window is NERD Tree

Settings Example
" Open and close all the three plugins on the same time
nmap <F8> :TrinityToggleAll<CR>
" Open and close the Source Explorer separately
nmap <F9> :TrinityToggleSourceExplorer<CR>
" Open and close the Taglist separately
nmap <F10> :TrinityToggleTagList<CR>
" Open and close the NERD Tree separately
nmap <F11> :TrinityToggleNERDTree<CR>
Changelog
2.2
- Add the configurations for supporting Source Explorer v6.0.
2.1
- Add the default keys for supporting Source Explorer v5.2 fast way of multi-defs jumping.
2.0
- Support the Named Buffer Version of Source Explorer (v5.1 and above).