Ⅰ. 插件描述
Vim plugin for writing poetry and proseⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'gmarmstrong/vim-muse'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'gmarmstrong/vim-muse'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'gmarmstrong/vim-muse'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/gmarmstrong/vim-muse
Ⅳ. 文档说明
muse
muse is a Vim plugin for writing poetry and prose. It provides features such as
AABB rhyme suggestions, synonym replacement, and syllable counting. It was
originally written under the name rhymer as a rhyming assistant and syllable
counter for the UGAHacks 2018 hackathon.
Usage instructions are included in the doc/
directory, and are also available
with :help muse
.
Installation with vim-plug
- Install vim-plug
- Add
Plug 'gmarmstrong/vim-muse'
to theplug
call in your~/.vimrc
- Restart Vim or enter
:source $MYVIMRC
- Enter
:PlugInstall vim-muse
- Restart Vim or enter
:source $MYVIMRC
Install Python 3 packages
python-datamuse
andnltk
. Either:- Enter
:MuseInstall
if usingpip3
, or... - Install
python-datamuse
andnltk
from PyPI and run
nltk.download('cmudict')
in Python 3
- Enter
Updating
- Enter
:PlugUpdate vim-muse
- Enter
:MuseUpdate
if usingpip3
, or upgradepython-datamuse
andnltk
from PyPI