用于居中文本的Vim插件

时间:2011-12-02 20:30:19

标签: vim

前段时间我偶然发现了一个vim插件,它以您正在编辑的文本为中心。 它发布在HN上,并在HNNewsletter中有特色,但我不记得这个名字......

是否有人识别插件?

2 个答案:

答案 0 :(得分:4)

您不需要插件。 ex命令:center就是这样做的, 居中指定的宽度,默认为textwidth选项 或80,如果后者设置为零。

======================================================================
When that your flock, assembled by the bell,
Encircled you to hear with reverence
Your exposition on the holy text
Than now to see you here an iron man,
Cheering a rout of rebels with your drum,
Turning the word to sword and life to death.
======================================================================
:%ce 70
======================================================================
             When that your flock, assembled by the bell,
                 Encircled you to hear with reverence
                   Your exposition on the holy text
                Than now to see you here an iron man,
              Cheering a rout of rebels with your drum,
             Turning the word to sword and life to death.
======================================================================

答案 1 :(得分:3)

你可能在谈论vimroom