Ⅰ. 插件描述
A vim plugin to mimic the behavior of WriteRoomⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jamestomasino/vim-writeroom'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jamestomasino/vim-writeroom'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jamestomasino/vim-writeroom'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jamestomasino/vim-writeroom
Ⅳ. 文档说明
## vim-writeroom ##
A vim WriteRoom Clone
vim-writeroom is a pathogen style vim plugin that will mimic the full-screen, distraction-free interface of WriteRoom. It is designed to be used alone or work in conjunction with other plugins.
Use
By default, the <F5> key is mapped to toggle vim-writeroom on and off. If this key is already bound, vim-writeroom will not override it. The line below is used internally to set up the binding. You can mimic the binding with your own key or sequence in your .vimrc file to customize its use.
nnoremap <F5> :call VimWriteRoom()<CR>
_Note_: there is a bug in MacVim on Lion that can create display issues in full-screen where the OS native background is displayed instead of vim's background. To fix this problem in the meantime, you can try running this command from your terminal window:
defaults write org.vim.MacVim MMNativeFullScreen 0
The following are a number of configuration variables that can be set to customize your vim-writeroom experience:
g:vimwriteroom = set to disable plugin
g:vimwriteroomcolorscheme = colorscheme to show in writeroom mode
Roadmap
Make<F5>or any call toVimWriteRoom()toggle the experience back and forthAdd support for configurable color options and various colorschemes- Add variable to use determine the use of the default <F5> toggle mapping
- Fix full-screen issues in Lion
- Expand help documents
Screenshot

Credits
vim-writeroom is written by James Tomasino. 
It was inspired, and much of the original code was lifted, from a blog post by Brandur.
Much thanks also goes to Steve Francia for his amazing spf13-vim, which helped me gain an understanding of vimL and learn to write a plugin.