Ⅰ. 插件描述
Headlights: Know thy BundlesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'mbadran/headlights'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'mbadran/headlights'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'mbadran/headlights'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/mbadran/headlights
Ⅳ. 文档说明

Headlights adds a Bundles 1 menu to Vim, revealing your bundles (aka.
plugins) and the features they provide.
Headlights creates a menu for each currently loaded 2 bundle, grouping
together docs, commands, mappings, abbreviations, functions, highlights, and
plugin files.
Combined with a powerful bundle manager, Headlights will improve your ~~Vim
user experience~~ quality of life.
Get Headlights
NOTE: Headlights requires Vim 7+ compiled with Python 2.6+ support.
The Recommended Way
Using [Vundle] [3]:
Add the following line to the Vundle section in your
.vimrc:`Bundle 'mbadran/headlights'`Run the following Vim command:
`BundleInstall`
The Manual Way
- [Download the latest package] [4].
- Expand the archive's contents into your
vimdirectory. Run the following Vim command:
`helptags <vim_dir>/<plugin_dir>/<headlights_dir>/doc/`
Explore the Options
let g:headlights_use_plugin_menu = 0 (Disabled)
let g:headlights_smart_menus = 1 (Enabled)
let g:headlights_show_commands = 1 (Enabled)
let g:headlights_show_mappings = 1 (Enabled)
let g:headlights_show_abbreviations = 0 (Disabled)
let g:headlights_show_functions = 0 (Disabled)
let g:headlights_show_highlights = 0 (Disabled)
let g:headlights_show_files = 0 (Disabled)
let g:headlights_show_load_order = 0 (Disabled)
let g:headlights_debug_mode = 0 (Disabled)
let g:headlights_run_on_startup = 0 (Disabled)
let g:headlights_spillover_menus = 0 (Disabled)
Go Deeper
Refer to the Headlights help document:
Bundles > a - i > headlights > Help
:help headlights
Protip
If you use MacVim, you can quickly access any plugin by typing its name. For
example, hit CMD-? to bring up a search dialog for menu items, then type `fug
open to reveal the fugitive.vim` file as the first result. You can also typefug help to quickly access the documentation. I do this, like, _all the time_.
- *