vim-scratchpad


Ⅰ. 插件描述

toggle a scratchpad in Vim

Ⅱ. 基本信息

创建日期:  2016-10-09
使用用户:  4
Github星:  10
插件作者:  Enno Nagel

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Vim-ScratchPad

This plug-in adds a key binding, by default dsp (= Display Scratch Pad), that toggles a scratchpad.
By default, it assumes the filetype FT and working directory CWD of the currently active buffer, and is stored in CWD/.scratchpads/scratchpad.FT.

The directory where the scratchpad is stored in is set by the variable

    let g:scratchpad_path = '.scratchpads'

It may be an absolute or relative path.
If it is a relative path (such as, by default .scratchpads), then it is relative to the working directory of the currently active window.

The filetype of the scratchpad is set by the variable

    let g:scratchpad_ftype = ''

If it is empty (as by default), then the filetype is that of the currently active buffer.

The key binding is set by the mapping

    nmap dsp <Plug>(ToggleScratchPad)

添加新评论