2011-12-02 33 views
2

前段時間,我偶然發現了一個vim插件,它以您正在編輯的文本爲中心。 它被張貼在HN和HNNewsletter中,但我不記得名字...用於居中文本的Vim插件

有沒有人認出這個插件?

+1

請[不要將簽名或標語添加到您的帖子](http://stackoverflow.com/faq#signatures)。 – meagar

回答

3

你可能談論vimroom

+0

那麼我們正在談論兩件非常不同的事情! :-)但是,由於我沒有閱讀「HNNewsletter」,所以很有可能你是正確答案的人,+1 – sidyll

+0

謝謝,正是我所說的。 :) – fvuj

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. 
======================================================================