vim-redacted


Ⅰ. 插件描述

:no_mouth: The best way to ████ the ████

Ⅱ. 基本信息

创建日期:  2017-12-09
使用用户:  6
Github星:  103
插件作者:  Daniel Marques

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'dbmrq/vim-redacted'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'dbmrq/vim-redacted'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'dbmrq/vim-redacted'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/dbmrq/vim-redacted

Ⅳ. 文档说明

# redacted.vim

redacted

How to use it

Just select some text and use :Redact to redact it. Use :Redact! to clear
the text.

You can also map an operator with <Plug>Redact:

nmap <leader>r <Plug>Redact
vmap <leader>r <Plug>Redact

Use :RedactedW to persist your changes, so your file will still look the
same if you close Vim and open it again.

But why?

I wrote Redacted because I often have to paraphrase something I wrote, but
it's hard to do it when you're looking at the original words; it feels like
there's no other way to say it. So I though, "it would be nice if I could read
a sentence, hide it, and then try to come up with a new way to explain it
without looking at the original text". So there you have it. You could also
use it to make something like flash cards; you can cover the answers with
Redacted and select them in visual mode when you want to see what's behind.

See also

You may also be interested in my other plugins:

添加新评论