Ⅰ. 插件描述
Vim plugin: Emulate Emacs' narrowing featureⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'kana/narrow-you-belong-with-me'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'kana/narrow-you-belong-with-me'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'kana/narrow-you-belong-with-me'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/kana/vim-narrow
Ⅳ. 文档说明
narrow is a Vim plugin to emulate Emacs' narrowing feature.
From GNU Emacs Manual:
Narrowing means focusing in on some portion of the buffer, making the
rest temporarily inaccessible. The portion which you can still get to
is called the accessible portion. Canceling the narrowing, which makes
the entire buffer once again accessible, is called widening. The
bounds of narrowing in effect in a buffer are called the buffer's
restriction.
Narrowing can make it easier to concentrate on a single subroutine or
paragraph by eliminating clutter. It can also be used to limit the
range of operation of a replace command or repeating keyboard macro.
Note that there are some differences from the original behavior.
See |narrow-bugs| for the detail.
Requirements:
- Vim 7.0 or later
Latest version:
http://github.com/kana/vim-narrow
Document in HTML format:
http://kana.github.com/config/vim/narrow.html