Ⅰ. 插件描述
Vim plugin: Text objects for entire bufferⅡ. 基本信息
|
Ⅲ. 安装方法
使用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
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:
aetargets the entire content of the current buffer.ieis similar toae, butiedoes not include leading and trailing emptyieis handy for some situations. For example,- Paste some text into a new buffer (
<C-w>n"*P)
-- note that the initial empty line is left as the last line. - Edit the text (
:%s/foo/bar/getc) - Then copy the resulting text to another application (
"*yie)
- Paste some text into a new buffer (
See also the reference manual for more details.
<!-- vim: set expandtab shiftwidth=4 softtabstop=4 textwidth=78 : -->
