scratch.vim


Ⅰ. 插件描述

Yegappan Lakshmanan's scratch.vim plugin

Ⅱ. 基本信息

创建日期:  2003-06-08
使用用户:  291
Github星:  30
插件作者:  Yegappan Lakshmanan

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'duff/scratch-vim-state-of-grace'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'duff/scratch-vim-state-of-grace'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'duff/scratch-vim-state-of-grace'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/duff/vim-scratch

Ⅳ. 文档说明

You can use the scratch plugin to create a temporary scratch buffer to store
and edit text that will be discarded when you quit/exit vim. The contents
of the scratch buffer are not saved/stored in a file.

Installation

  1. Copy the scratch.vim plugin to the $HOME/.vim/plugin directory. Refer to
    the following Vim help topics for more information about Vim plugins:
  :help add-plugin 
  :help add-global-plugin 
  :help runtimepath 
  1. Restart Vim.

Usage

You can use the following command to open/edit the scratch buffer:

  :Scratch 

To open the scratch buffer in a new split window, use the following command:

  :Sscratch 

When you close the scratch buffer window, the buffer will retain the

  1. You can again edit the scratch buffer by openeing it using one of
  2. above commands. There is no need to save the scatch buffer.

When you quit/exit Vim, the contents of the scratch buffer will be lost.
You will not be prompted to save the contents of the modified scratch

You can have only one scratch buffer open in a single Vim instance. If the
current buffer has unsaved modifications, then the scratch buffer will be
opened in a new window

install details

  1. Copy the scratch.vim plugin to the $HOME/.vim/plugin directory.
  2. Restart Vim

添加新评论