Vim Tips Wiki
(Added to Windows category.)
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)

Revision as of 09:46, 18 October 2007

Previous TipNext Tip

Tip: #676 - Use shortcut key to start gvim in Windows

Created: March 13, 2004 18:40 Complexity: basic Author: LunLun Version: 6.0 Karma: 1/14 Imported from: Tip#676

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.

Comments

Thank you ;-)

By the way, do you have a faster / easier way?

Anonymous , March 15, 2004 11:27


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.

Thanks for a great tip: simple and powerful.


Where all else fails there is always autohotkeys CY


clp , May 7, 2004 12:51