Vim Tips Wiki
m (Shortcut key for gvim in Windows XP moved to Use shortcut key to start gvim in Windows: Page moved by JohnBot to improve title)
(Change to TipImported template + severe manual clean)
Line 1: Line 1:
 
{{review}}
 
{{review}}
  +
{{TipImported
{{Tip
 
 
|id=676
 
|id=676
  +
|previous=675
|title=Shortcut key for gvim in Windows XP
 
  +
|next=677
|created=March 13, 2004 18:40
+
|created=March 13, 2004
 
|complexity=basic
 
|complexity=basic
 
|author=LunLun
 
|author=LunLun
 
|version=6.0
 
|version=6.0
 
|rating=1/14
 
|rating=1/14
|text=
 
'''Purpose''': I want to open gvim, in Windows XP, using a shortcut key.
 
 
'''HowTo''': I made a shortcut to gvim, and I assigned a shortcut key in the ''Properties'' menu.
 
 
 
 
'''Issue''': I can start the first instance of gvim, but the same combination will not allow me to start the second instance; it will just display the first one.
 
 
'''HowToFixIssue''': I created a shortcut in the Start Menu. Now, I press and release the "WIN" key, and after that, I press "g" once. It can launch an unlimited number of instances of vim. Sometimes, I need to write a script in one instance and to see the output in another.
 
 
}}
 
}}
 
I want to open gvim, in Windows XP, using a shortcut key.
   
 
To do this, I made a shortcut to gvim, and I assigned a shortcut key in the ''Properties'' menu.
== Comments ==
 
Thank you ;-)
 
   
 
However, I can start the first instance of gvim, but the same combination will not allow me to start the second instance; it will just display the first one.
By the way, do you have a faster / easier way?
 
   
 
My solution was to create a shortcut in the Start Menu. Now, I press and release the "Windows" key, and then press "g" once. It can launch an unlimited number of instances of Vim. Sometimes, I need to write a script in one instance and to see the output in another.
'''Anonymous'''
 
, March 15, 2004 11:27
 
----
 
I used this shortcut target, under the "\Doc*Settings\All Users\Start Menu":
 
   
 
==Comments==
"C:\Program Files\gvim\vim62\gvim.exe" "c:/"
 
 
I used this shortcut target, under the "\Doc*Settings\All Users\Start Menu":
   
  +
<pre>
Vim opens the root dir of c:, from which I can navigate and open the desired file w/o a mouse and Win Explorer.
 
 
"C:\Program Files\gvim\vim62\gvim.exe" "c:/"
  +
</pre>
   
 
Vim opens the root dir of c:, from which I can navigate and open the desired file w/o a mouse and Win Explorer.
Thanks for a great tip: simple and powerful.
 
   
 
----
 
----
 
Where all else fails there is always [http://www.autohotkeys.com/ autohotkeys]
 
Where all else fails there is always [http://www.autohotkeys.com/ autohotkeys]
CY
 
   
 
 
clp
 
, May 7, 2004 12:51
 
 
----
 
----
<!-- parsed by vimtips.py in 0.690920 seconds-->
 
 
 
[[Category:Windows]]
 
[[Category:Windows]]

Revision as of 03:40, 10 November 2007

Tip 676 Printable Monobook Previous Next

created March 13, 2004 · complexity basic · author LunLun · version 6.0


I want to open gvim, in Windows XP, using a shortcut key.

To do this, I made a shortcut to gvim, and I assigned a shortcut key in the Properties menu.

However, I can start the first instance of gvim, but the same combination will not allow me to start the second instance; it will just display the first one.

My solution was to create a shortcut in the Start Menu. Now, I press and release the "Windows" key, and then press "g" once. It can launch an unlimited number of instances of Vim. Sometimes, I need to write a script in one instance and to see the output in another.

Comments

I used this shortcut target, under the "\Doc*Settings\All Users\Start Menu":

"C:\Program Files\gvim\vim62\gvim.exe" "c:/"

Vim opens the root dir of c:, from which I can navigate and open the desired file w/o a mouse and Win Explorer.


Where all else fails there is always autohotkeys