sponsor Vim development Vim logo Vim Book Ad

maxivim : Maximize/unmaximize gvim without window manager

 script karma  Rating 0/0, Downloaded by 493  Comments, bugs, improvements  Vim wiki

created by
Jim Knoble
 
script type
utility
 
description
In some environments (for example, KDE 3), gvim is unable to properly maximize or unmaximize itself, due to interactions with window managers or other issues.

Maxivim bypasses window managers, allowing you to maximize gvim vertically, horizontally, or both, and restore it from having maximized it.

Maxivim also allows you to set the initial size of your gvim windows by setting environment variables ($GVIM_LINES and $GVIM_COLUMNS).

(This used to work with Vim 6, but I've only recently tested on Vim 7).
 
install details
Put maxivim.vim into your vim plugins directory.

If desired, add one or more of the following to your ~/.gvimrc:

if has("gui_running")
        " Enable keybindings for [F5], [F6], [F7], and [Shift+F6].
        let g:maxivim_should_map_keys = 1
        " Ask maxivim to resize your gvim windows to the default size.
        let g:maxivim_should_resize_to_default = 1
        " These override the values of $GVIM_COLUMNS and $GVIM_LINES.
        let g:maxivim_default_columns = 100
        let g:maxivim_default_lines = 50
endif
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
maxivim.vim 0.101001 2010-11-09 6.0 Jim Knoble Initial upload
ip used for rating: 18.118.120.204

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github