Tip #307: annoying "Hit any key to close this window..."
tip karma |
Rating -7/14, Viewed by 2726
|
created: |
|
August 11, 2002 5:57 |
|
complexity: |
|
basic |
author: |
|
Chia-po Wei |
|
as of Vim: |
|
6.0 |
i use gvim and bash heavily under win98.
i have
let $HOME = substitute($HOME, '\', '/', 'g')
set shell=bash\ --rcfile\ \"$HOME\"_bashrc\ -i
in my _vimrc, and something like
function br()
{
if [ $1 ]; then
explorer.exe ${1//\//\\}
else
explorer.exe ${PWD//\//\\}
fi
}
in my _bashrc. when i finish editing one html file,
i simply type :!br %
everything works fine now. but when :!br % executes,
one console window will bump out and wait me to press some
key to contiue. i consider this quiet annoying. i want the console window
to disappear automatically if no fault has happened.
does anyone know how to achieve this?
thanks.
<<Open a web-browser with the URL in the current line |
Move through wrapped lines. >>
Additional Notes
|