gedim


Ⅰ. 插件描述

Auto-size Graphical EDitor DIMensions on open.

Ⅱ. 基本信息

创建日期:  2010-08-11
使用用户:  1
Github星:  1
插件作者:  Eugene Ciurana

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

My portable computer is my primary workstation. I either use an external, high resolution monitor or its built-in screen, depending on where I am. I often use also someone else's monitors, when I'm working remotely. This forces me to change the graphical Vim editor dimensions for every location where I happen to be. Though not complicated, it's annoying. That's why I wrote this script/Vim auto-command that does the job instead. Just define the desired editor columns and lines for a given resolution, and MacVim will open at that size every time that the same resolution is detected.

Features:

    * User configurable: add as many output device resolutions and editor sizes as desired or needed
    * MacVim and gVim compatible
    * Works on OS X, Linux/Gnome, Linux/KDE, and Windows
    * Unobtrusive; set it up once and forget about it

No more dragging the window corners to resize. No more :set columns=128. Just open Vim and get to work!

添加新评论