removed


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2012-03-12
使用用户:  2
Github星:  1
插件作者:  glts

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

spacebox.vim

DEPRECATED: Use textobj-indblock instead
https://github.com/glts/vim-textobj-indblock

Spacebox is a simple Vim plugin which allows you to select a Visual block of
indentation whitespace based on the indentation of the current line.

The plugin provides the single command ":SpaceBox" for that matter. In the
following code fragment, when the cursor is resting on "200", ":SpaceBox"
selects the Visual block marked by the middots.

foreach my $q (@$questions) {

if ($q->answered()) {

········my $upvotes = 0;
········foreach (@{ $q->answers() }) { $upvotes += $_->upvotes() }
········
········push @good_answers, $q if $upvotes > 200;

}

}

See the documentation for details.

Installation

Move spacebox.vim into the ~/.vim/plugin directory and spacebox.txt into the
~/.vim/doc directory. (On Windows, replace "~/.vim/" with "~vimfiles".)

With a plugin manager such as pathogen the installation is as simple as:

cd ~/.vim/bundle
git clone git://github.com/glts/vim-spacebox.git spacebox

Finally, don't forget to run ":helptags" or equivalent on your doc directory
to register the spacebox help file.

添加新评论