Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Select a Visual block of indentation whitespace (deprecated: use vim-textobj-indblock instead)

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 doc
Octocat-spinner-32 plugin
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README

DEPRECATED: Use textobj-indblock instead

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.


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:// spacebox

Finally, don't forget to run ":helptags" or equivalent on your doc directory
to register the spacebox help file.
Something went wrong with that request. Please try again.