Vim Tips Wiki
Explore
Main Page
All Pages
Community
Interactive Maps
Community portal
To do
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
Vim Tips Wiki
1,649
pages
Explore
Main Page
All Pages
Community
Interactive Maps
Community portal
To do
Editing
Use K to easily run a Windows program for the current word
Back to page
Edit
Edit source
View history
Talk (0)
Edit Page
Use K to easily run a Windows program for the current word
We recommend that you
log in
before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your
Watchlist
.
Creating an account
is quick and free.
The edit appears to have already been undone.
Anti-spam check. Do
not
fill this in!
{{review}} {{TipImported |id=642 |previous=641 |next=643 |created=January 21, 2004 |complexity=basic |author=David Risner |version=6.0 |rating=13/8 |category1= |category2= }} 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: <pre> map K yiw:exec "silent !".&kp." ".@0<CR> </pre> You can then set the keywordprg (abbreviated kp above) to the program you want to run. ==Comments==
Summary:
Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Navigation
(
view source
)
Template:Review
(
view source
)
Template:TipImported
(
view source
)
Follow on IG
TikTok
Join Fan Lab