distraction-free-writing-vim


Ⅰ. 插件描述

Collection of configurations I use to for my distraction free editing environment in Vim

Ⅱ. 基本信息

创建日期:  2012-09-04
使用用户:  13
Github星:  86
插件作者:  Lakshan Perera

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/laktek/distraction-free-writing-vim

Ⅳ. 文档说明

## Distraction Free Writing for Vim

  • Copy plugin/DistractionFree.vim to ~/.vim/plugin
  • Copy syntax/mkd.vim to ~/.vim/syntax
  • Copy ftdetect/mkd.vim to ~/.vim/ftdetect
  • Copy colors/iawriter.vim to ~/.vim/colors
  • In .vimrc, specify the colorschemes and fonts to use in fullscreen mode and normal mode.

        g:fullscreen_colorscheme - colorscheme to use in fullscreen mode 
        g:fullscreen_font font to use in fullscreen mode 
        g:normal_colorscheme - colorscheme to use in normal mode 
        g:normal_font - font to use in normal mode
    

example (macvim):

    let g:fullscreen_colorscheme = "iawriter"
    let g:fullscreen_font = "Cousine:h14"
    let g:normal_colorscheme = "codeschool"
    let g:normal_font="Inconsolata:h14"

or, for gvim:

  let g:fullscreen_colorscheme = "iawriter"
  let g:fullscreen_font ="Cousine 12"
  let g:normal_colorscheme= g:colors_name
  let g:normal_font=&guifont

Under linux, you must manually activate fullscreen mode (ie ALT+F11)

添加新评论