vim-control-window


Ⅰ. 插件描述

A simple vim plugin get easy way to control window geometry

Ⅱ. 基本信息

创建日期:  2016-10-06
使用用户:  2
Github星:  0
插件作者:  hanson

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# Introduction

Easy to control window geometry.

Required

  • vim +python
  • xdotool (ubuntu platform can install like 'apt-get install xdotool')

Commands

            :ControlWindow [top] [right] [down] [left] 

move the window like css margin style. you can do it like:

  • :ControlWindow 30
  • :ControlWindow 20 30
  • :ControlWindow 10 30 20
  • :ControlWindow 20 30 30 20

Variables

                    g:controlwindow#top#margin

this variable means Screen Heigh must be reduced it is value when do command

  1. ubuntu platform, it's very reasonable to reduced the unity panel height
  2. it count the height.

Notice

xdotool can not move window topleft absolutely, it will leave 10 pixel.

添加新评论