ViewPort


Ⅰ. 插件描述

Make a buffer from part of a file

Ⅱ. 基本信息

创建日期:  2012-10-27
使用用户:  1
Github星:  2
插件作者:  Marcin Szamotulski

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Note: if you want to downgrade the plugin, let me know what is wrong with it, I am sure it can be fixed.

This is a simple plugin which makes a buffer from a part of a buffer. Saving the new buffer will install the changes into the original buffer rather than save it to disk. This is a nice utility if you wan to make diffs of two parts of two files. If the original part of the file was modified an error message is given (like when saving to a modified file to a disk), you can use :w! to discard the changes made in original file. The script is using marks to track the positions, hence you can modify the original file.

添加新评论