WriteRoom for Vim


Ⅰ. 插件描述

A Vim emulation of the minimalistic WriteRoom editor

Ⅱ. 基本信息

创建日期:  2008-05-07
使用用户:  1
Github星:  1
插件作者:  Marc van Doornik

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/WriteRoom-for-Vim

Ⅳ. 文档说明

As you probably know, WriteRoom (http://hogbaysoftware.com/products/writeroom) is a very minimalistic text editor, focusing on a clean appearance of just the edited document. This script creates 'padding' around the editing window in gVim and hides the vertical splits and other items to obtain this same effect, while keeping all of Vim's extensive features available.

Using the file is simple, just issue a gvim -S ~/.vim/writeroom/writeroom.vim {filename} at the command line to open the file in a very clean, minimalist setup. Perfect for ADD-ers like myself ;-)

This file adds the following:

Commands:

WriteRoomBG {color} ; sets the background color
WriteRoomFG {color} ; sets the foreground color
WriteRoomFilename {color} ; sets the color for the filename just below the editing window
WriteRoomNonText {color} ; sets the color for non-text characters

Functions:

UpdateScreen() ; updates the screen size and colors

Mappings:

<F5> toggles visibility of EOL, TAB and tilde lines

添加新评论