neat-json.vim


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2013-08-27
使用用户:  11
Github星:  0
插件作者:  Hirofumi Wakasugi

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/5t111111/neat-json.vim

Ⅳ. 文档说明

neat-json.vim

neat-json.vim is a plugin that enables you to indent the JSON on the current buffer prettily.
if_pyth is required as it is written in Python.

Installation

When using NeoBundle, add this in your .vimrc.

NeoBundle '5t111111/neat-json.vim'

Usage

neat-json has two types of JSON indention.

  • NeatJson
    This command indents the JSON string on the current buffer, also the strings is displayed as encoded by utf-8.
  • NeatRawJson
    This command indents the JSON string on the current buffer, also the strings is displayed in raw utf-8.

添加新评论