Ⅰ. 插件描述
MoonScript support for vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'leafo/moonscript-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'leafo/moonscript-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'leafo/moonscript-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/leafo/moonscript-vim
Ⅳ. 文档说明
# moonscript-vim
Adds syntax highlighting and indent support for MoonScript in vim.
Install
Using Vundle
Add the following to your
.vimrc
where other bundles are located:Plugin 'leafo/moonscript-vim'
Run from command line:
$ vim +PluginInstall +qall
Using pathogen
Check out the repository into your bundle path:
$ cd ~/.vim/bundle $ git clone git://github.com/leafo/moonscript-vim.git
Normal
- Check out the repository and copy the following to
.vim/
directory or any
other run time path, keeping their directory structure intact:
syntax/moon.vim
indent/moon.vim
ftdetect/moon.vim
Thanks
Special thanks to the https://github.com/kchmck/vim-coffee-script project. I
copied the syntax and indent code as a starting point.