vim-indent-lua


Ⅰ. 插件描述

better lua indent

Ⅱ. 基本信息

创建日期:  2016-08-20
使用用户:  3
Github星:  7
插件作者:  张炎泼

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-indent-lua

Better lua indent script for VIM

Status

This script is in beta phase.

Description

Improve official lua indent script in several aspects.
Not like the official one, this script indent codes in a true recursive
manner, instead of checking only the previous line.

Features:

  • Aligns multi-line function parameters and items in ().
  • Aligns members in a table definition.
  • Fix indent of code block in a table {...}.
  • Indents the second line for a multi-line expression.

Before and After using this plugin:

Installation

Installing with pathogen.vim
is recommended. Copy and paste:

cd ~/.vim/bundle
git clone git://github.com/drmingdrmer/vim-indent-lua.git

Or manually:

Download vim-indent-lua.zip
and unzip it into ~/.vim.

Author

Zhang Yanpo (张炎泼) <drdr.xp@gmail.com>

Copyright and License

The MIT License (MIT)

Copyright (c) 2015 Zhang Yanpo (张炎泼) <drdr.xp@gmail.com>

添加新评论