Vim Tips Wiki
Tip 819 Printable Monobook Previous Next

created 2004 · complexity basic · author Siegfried Bublitz · version 5.7

Pressing CTRL-Z in normal or visual mode will send Vim to the background, suspending it. Even gvim is iconized. In Microsoft Windows, this means pressing "minimize" the current gvim window.

Windows also provides a "shortcut key" property in the "Properties" dialog of any given shortcut. You can open this dialog and enter CTRL-ALT-Z as the shortcut key by selecting the shortcut key box and typing the key combination. Doing so allows you to press CTRL-ALT-Z to bring Vim to the foreground after launching it, and press CTRL-Z to minimize.