Ⅰ. 插件描述
criticmarkup support for vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'vim-pandoc/vim-criticmarkup'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'vim-pandoc/vim-criticmarkup'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'vim-pandoc/vim-criticmarkup'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-pandoc/vim-criticmarkup
Ⅳ. 文档说明
# vim-criticmarkup
Adds [criticmarkup][] support to vim. Attaches to pandoc, markdown, mkd
and txt filetypes.

Basic syntax
criticmarkup can be used to annotate additions, deletions, substitutions,
highlights and comments in a text document.
Additions
That was a {++very ++}hasty comment.
Deletions
It is {--not --} uncommon for people to tell the truth.
Substitutions
The {~~bird~>condor~~} flew majestic through the skies.
Comments
I believe this is not enough.{>> @editor on what grounds? <<}
Highlights
{==Some sources==}{>> Which? <<} mention ὰταραξία as the ancient skeptics goal.
Handling annotations
vim-criticmarkup creates a command, :Critic, that can accept, reject and
delete annotations. To accept an edit, simply place the cursor inside the
annotation and then execute
:Critic accept
If you want to reject it, use
:Critic reject
Currently, neither accept or reject work on highlights or comments.
TODO
- Expand
accepts andrejects to handle highlights and comments. - Implement operators and keyboard mappings to create annotations.