textobj-entire


Ⅰ. 插件描述

Vim plugin: Text objects for entire buffer

Ⅱ. 基本信息

创建日期:  2009-04-15
使用用户:  685
Github星:  244
插件作者:  Kana Natsuno

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-textobj-entire - Text objects for entire buffers

Build Status

vim-textobj-entire is a Vim plugin to provide text objects (ae and ie by
default) to select the entire content of a buffer. Though these are trivial
operations (e.g. ggVG), text object versions are more handy, because you do
not have to be conscious of the cursor position (e.g. vae).

vim-textobj-entire provides two text objects:

  • ae targets the entire content of the current buffer.
  • ie is similar to ae, but ie does not include leading and trailing empty

    1. ie is handy for some situations. For example,

      1. Paste some text into a new buffer (<C-w>n"*P)
        -- note that the initial empty line is left as the last line.
      2. Edit the text (:%s/foo/bar/g etc)
      3. Then copy the resulting text to another application ("*yie)

See also the reference manual for more details.

<!-- vim: set expandtab shiftwidth=4 softtabstop=4 textwidth=78 : -->

添加新评论