vim-all


Ⅰ. 插件描述

Idiomatic vim text objects that work on the whole buffer.

Ⅱ. 基本信息

创建日期:  2014-08-22
使用用户:  1
Github星:  11
插件作者:  vim-utils

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'vim-utils/vim-all-you-belong-with-me'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'vim-utils/vim-all-you-belong-with-me'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'vim-utils/vim-all-you-belong-with-me'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# all.vim

Idiomatic vim text objects that work on the whole buffer.

Text objects

  • a<Enter> all lines in the buffer
  • i<Enter> inside lines - all lines, except leading and trailing empty lines

Examples

a<Enter>

  • ya<Enter> yank all lines in the buffer
  • da<Enter> delete the whole buffer

i<Enter>

  • vi<Enter> visually select all non empty lines
  • yi<Enter> yank all non empty lines

Why?

Instead of using this plugin you can type ggVG + operator to get similar
behavior.

This plugin brings you:

  • "vim idiomatic" mappings
  • less keystrokes to type
  • speed

Installation

  • Vundle<br/>
    Plugin 'bruno-/vim-all'
  • Pathogen<br/>
    git clone git://github.com/bruno-/vim-all.git ~/.vim/bundle/vim-all

Other

vim-textobj-entire seems to do the
same thing, but has different mappings.

License

MIT

添加新评论