VimSpy


Ⅰ. 插件描述

VimSpy enables you to browse through all Vim internal entities.

Ⅱ. 基本信息

创建日期:  2007-03-18
使用用户:  1
Github星:  1
插件作者:  Michael Schwarz

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/VimSpy

Ⅳ. 文档说明

VimSpy defines a few commands and key mappings which enables you browse through almost all Vim internal entities such as functions, commands, menus and key mappings.

Main commands:

Function [funcName]
Command [cmdName]
Autocmd [autocmd]
Menu [menuName]
Map [mapping]
Syntax [synItem]
Highlight [synItem]

These commands are simply analogues of well-known Vim informational commands as function, command, autocmd and so on.
But they are modified in such a way that enables you use it much more efficient.

  1. An output of command is displayed in new window rather than ugly console.
  2. It is nicely highlighted.
  3. All function names and other keywords in output are clickable. When you double-click function name, new window with function definition is opened. In this function definition you may click any other function name and one more definition will be opened.  If you double-click Vim built-in keyword, help window will be opened. You also may to put cursor on keyword you are interested for and press enter. It will have the same effect as double-click.

So you can in such a way quickly browse Vim internals.

VimSpy also has such commands:

Changes -- :change command analogue
Messages -- :message command analogue

CommandOutput  [cmd [args]] -- display output of any command in new window (It will not be highlighted though, except all command that have uppercase analogues)

AMap        AMenu         ANoreMap   ANoreMenu
CMap        CMenu         CNoreMap  CNoreMenu
IMap          IMenu          INoreMap    INoreMenu
NMap         NMenu        NNoreMap   NNoreMenu
NoreMap    NoreMenu    OMap          OMenu
ONoreMap ONoreMenu  SMap          SMenu
SNoreMap  SNoreMenu  VMap          VMenu
VNoreMap  VNoreMenu  XMap          XMenu
XNoreMap  XNoreMenu  LMap         LNoreMap    --      analogues of lowercase functions

添加新评论