stable-windows


Ⅰ. 插件描述

Keeps vim windows stable on layout changes

Ⅱ. 基本信息

创建日期:  2019-10-02
使用用户:  1
Github星:  27
插件作者:  Gilly Barr

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# stable-windows

Keeps vim windows stable when layout changes.

It really annoys me when opening new windows in vim (especially
using the quickfix or location list) and vim automatically
adjusts the text in all the windows so the cursor line is
centered.

This is what I'm talking about:
Unstable vim windows

And after using the 'stable-windows' plugin, your vim will
behave like this:
Stable vim windows

Installation

  • VimPlug
    Place this in your .vimrc:

Plug gillyb/stable-windows

And then open vim and run:

:source %
:PlugInstall
  • Vundle
    Place this in your .vimrc:

Plugin gillyb/stable-windows

And then open vim and run:

:source %
:PlugInstall
  • NeoBundle
    Place this in your .vimrc:

NeoBundle gillyb/stable-windows

And then open vim and run:

:source %
:NeoBundleInstall
  • Pathogen
    Run the following in a terminal:

    cd ~/.vim/bundle
    git clone https://github.com/gillyb/stable-windows

Usage

You do not need to do anything special (except installing)
to use this plugin. Once it's loaded in vim, it will just
work.

Please enjoy, feel free to contribute and keep on vimming.

添加新评论