Vim Tips Wiki
(Change to TipImported template + severe manual clean)
m (Reverted edits by 31.18.42.189 (talk | block) to last version by JohnBot)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{review}}
 
 
{{TipImported
 
{{TipImported
 
|id=645
 
|id=645
 
|previous=644
 
|previous=644
 
|next=646
 
|next=646
|created=January 28, 2004
+
|created=2004
 
|complexity=basic
 
|complexity=basic
 
|author=Girish Gajwani
 
|author=Girish Gajwani
 
|version=5.7
 
|version=5.7
 
|rating=26/8
 
|rating=26/8
  +
|category1=Windows
  +
|category2=
 
}}
 
}}
 
I was trying to figure out why Alt+space would not work, as I would have to use the mouse to maximize/restore/minimize my gvim window (on Win32) which was a pain and found that I needed to
 
I was trying to figure out why Alt+space would not work, as I would have to use the mouse to maximize/restore/minimize my gvim window (on Win32) which was a pain and found that I needed to
Line 23: Line 24:
 
Alt+Space followed by 'r' to restore!
 
Alt+Space followed by 'r' to restore!
 
</pre>
 
</pre>
  +
  +
Note that with <code>winaltkeys=yes</code>, you won't be able to map any ALT key combinations. If this is a problem for you, try <code>winaltkeys=menu</code> or <code>winaltkeys=no</code> in conjunction with <code>:simalt</code>.
   
 
==References==
 
==References==
 
*{{help|'winaltkeys'}}
 
*{{help|'winaltkeys'}}
  +
*{{help|:simalt}}
 
*[[VimTip494]]
 
*[[VimTip494]]
   
 
==Comments==
 
==Comments==
I use Vim on Win2K, ALT+Space works well on English Win2K platform, it seems this shortcut does not work on multi-byte language Win2K (e.g. Chinese Win2K). Is this a bug?
 
 
----
 
I'm using Vim 6.1 on WinXP and the Alt+Space works for me but not in the normal way. I have to press Alt, release it and then press the space bar to bring up the menu. In most other programs I can press and hold Alt and then hit the space bar.
 
   
  +
I have been struggling with this problem. Thank you very much for sharing this information.
----
 

Latest revision as of 12:00, 15 July 2014

Tip 645 Printable Monobook Previous Next

created 2004 · complexity basic · author Girish Gajwani · version 5.7


I was trying to figure out why Alt+space would not work, as I would have to use the mouse to maximize/restore/minimize my gvim window (on Win32) which was a pain and found that I needed to

set winaltkeys=yes

to make this work. Now I can use

Alt+Space followed by 'x to maximize
Alt+Space followed by 'n' to minimize
Alt+Space followed by 'r' to restore!

Note that with winaltkeys=yes, you won't be able to map any ALT key combinations. If this is a problem for you, try winaltkeys=menu or winaltkeys=no in conjunction with :simalt.

References[]

Comments[]

I have been struggling with this problem. Thank you very much for sharing this information.