pr3d4t0r / gedim

gVim/MacVim Graphics Editor DIMensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

Installation

UNIX-like systems:

cd ~/.vim

unzip /path/to/gedim.zip

vi
:helptags ~/.vim/doc

Windows systems:

Unpack the .zip file and copy the files to your gvim or vim configuration directory, then:

vi
:helptags /path/to/doc

Caveat Fenestrae emptor:

Unfortunately the developers or testers had only limited access to a Windows machine. Please let me know if you had issues using the URL in the next section.

Update 30.Sep.2014: a user reported bugs in Windows Vista - users are advised to use gVim (or equivalent) for Windows only on versions 7 and older (Window 8.1 is best at the time of this report).

Comments, questions, bug reports:

Eugene Ciurana, http://eugeneciurana.com/contact or http://ciurana.eu/contact for your questions.

Project page: http://github.com/pr3d4t0r/gedim

Installation page: http://www.vim.org/scripts/script.php?script_id=3196

Contributors, license, other information:

Use the Force. See the Source.

License: 3-clause BSD.

The gedim.vim source file features the contributors list, license and version history.

About

gVim/MacVim Graphics Editor DIMensions


Languages

Language:Vim Script 100.0%