Ⅰ. 插件描述
A Vim plugin for editing and playing Alda scoresⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'daveyarwood/vim-alda'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'daveyarwood/vim-alda'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'daveyarwood/vim-alda'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/daveyarwood/vim-alda
Ⅳ. 文档说明
# vim-alda
A plugin for Vim providing support for editing and playing Alda scores.
Features
- Syntax highlighting and filetype detection.
- Score navigation via
[[,]],[],][. - Folds for instrument parts, voices, etc.
- Support for vim-commentary.
- Useful commands/mappings for playing selections of Alda code.
- Commands/mappings for parsing the current score and showing the results.
- Per-buffer history feature makes playing selections feel like using the Alda
REPL.
Installation
Install using your Vim plugin manager of choice. Vundle, vim-plug, and dein.vim are all fine choices.
Of course, if you haven't already, you should install Alda.
Alda version 1.0.0-rc83 or higher is required.
Optional
For pretty-printed JSON when viewing a parsed score, install jq and make
it available on your $PATH.
Usage
For comprehensive documentation, see :help alda.
Contributing
Pull Requests welcome!
License
Copyright © 2015-2017 Dave Yarwood
Distributed under the same terms as Vim itself. See :help license.