Ⅰ. 插件描述
A somewhat better Lua indent script for VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'raymond-w-ko/vim-lua-indent'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'raymond-w-ko/vim-lua-indent'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'raymond-w-ko/vim-lua-indent'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/raymond-w-ko/vim-lua-indent
Ⅳ. 文档说明
vim-lua-indent
A somewhat better Lua indent script for Vim
This is a hastily hacked on version of the lua.vim indent file that ships with
Vim. It auto-indents much better than the default one, especially when you have
function arguments that span multiple lines inside of conditionals or just a
function's multi-line argument list itself.
For an example of what it can accomplish, go here:
https://gist.github.com/4208232
INSTALL
Copy the lua.vim file into the indent/ folder of your $HOME/.vim/ or $HOME/vimfiles/ directory.
Or, use vim-pathogen to manage it as a bundle (recommended).