prettyprint.vim


Ⅰ. 插件描述

Prettyprint vim variables.

Ⅱ. 基本信息

创建日期:  2009-06-24
使用用户:  60
Github星:  38
插件作者:  thinca

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

prettyprint is a Vim plugin to prettyprint vim variable for debug.

Example:
When g:prettyprint_width = 78, you run the following command,
    :PP {'triangular':[3,6,9,12,15],'squares':[1,4,16,25,36],'pentagonal':[1,5,12,22,35]}

You get the following display as a result.
    {
      'pentagonal': [1, 5, 12, 22, 35],
      'squares': [1, 4, 16, 25, 36],
      'triangular': [3, 6, 9, 12, 15]
    }

Example of usage: You try the following command to view the all global variables.

    :PP g:

Latest Version:
https://github.com/thinca/vim-prettyprint

添加新评论