History Report a problem
Article Edit this page Discussion

Use K to easily run a Windows program for the current word

From Vim Tips Wiki

(Redirected from VimTip642)
Jump to: navigation, search
 

Tip 642Previous TipNext Tip

Created: January 21, 2004 Complexity: basic Author: David Risner Minimum version: 6.0 Karma: 13/8 Imported from: Tip#642


To get the K command to open a Windows program without creating a command prompt window that needs to be closed, you can do the following:

In your vimrc add:

map K yiw:exec "silent !".&kp." ".@0<CR>

You can then set the keywordprg (abbreviated kp above) to the program you want to run.

[edit] Comments


Rate this article:

Share this article:

Hubs Highlights International Sites Wikia messages
Entertainment
Gaming
Cartoons & Comics
Science Fiction
Hobbies
Sports
See all...
Grand Theft Auto
Terminator Wiki
Legend of Zelda Wiki
Flash Gordon
Everquest II Wiki
Yo-Yo Wiki
German
Spanish
Chinese
Japanese
More...
Wikia is hiring for several open positions
Send this article to a friend
"Use K to easily run a Windows program for the current word"
 
 
Hi!

I thought you'd like this page from Wikia!

http://vim.wikia.com

Come check it out!
Send confirmation