Ⅰ. 插件描述
zen mode vim pluginⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'mmai/vim-zenmode'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'mmai/vim-zenmode'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'mmai/vim-zenmode'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/mmai/vim-zenmode
Ⅳ. 文档说明
vim-zenmode
This plugin transforms vim into a distraction free editor similar to writeroom or iaWriter.
Zen mode is based on Vimroom by
Mike West. It has only been tested on gvim + Xubuntu
Installation
Install pathogen.vim if you haven't already done so, then simply execute:
cd ~/.vim/bundle
git clone git://github.com/mmai/vim-zenmode.gitInstall a good looking monospaced font :
cd ~/.font
curl http://www.fontsquirrel.com/fonts/download/cousine > cousine.zip
unzip cousine.zip
fc-cache -vf ~/.fontConfigure zenmode font and colorscheme in your .vimrc :
"Zenmode
let g:zenmode_background = "dark"
let g:zenmode_colorscheme = "solarized"
let g:zenmode_font ="Cousine 12"Usage
- Open gvim. Expand your window if necessary
- Switch to Zen Mode with
<LEADER> + Z - Go Full Screen (
ALT + F11on Xubuntu) - Write great things
- Quit with :qa (there are many windows to close)
Tips
- If you plan to use Zenmode when writing markdown documents, installing
vim-markdown is a good way to enhance your experience. - Get your document words count with :
g <CTRL>+g