Tip #642: Windows: Get K to not display a DOS box that needs closing
tip karma |
Rating 13/8, Viewed by 1030
|
Read and edit this tip on the
Vim tip wiki.
The wiki may have a more recent version of this tip.
created: |
|
January 21, 2004 17:37 |
|
complexity: |
|
basic |
author: |
|
David Risner |
|
as of Vim: |
|
6.0 |
To get the K command to open a Windows program without creating DOS box that needs to be closed you can do the following:
In your _vimrc add the following:
map K yiw:exec "silent !".&kp.;" ".@0<CR>
You can then set the keywordprg (abbreviated kp above) to the program you want to run.
Thanks to Jacob Lerner, Tim Chase, and Suresh Govindachar for coming up with this.
<< Highlighting of method names in the definition (C++) |
Disable built-in command >>
Additional Notes
|