RE: Opening a file as the OS would

2008-08-25 Fir de Conversatie Robert Webb
Tony Mechelynck wrote: > The script will only work on Windows anyway, because each OS has its own > way (when it has one) of opening a given non-executable file in the > default handler program for that filetype. There's no portable way to do > that, you've got to use, for each OS, whatever works

Re: Opening a file as the OS would

2008-08-21 Fir de Conversatie Tony Mechelynck
On 20/08/08 16:16, Robert Webb wrote: > Hi, > > What's the best way (on Windows) to open a file from vim in whatever > Windows normally uses to open that file? For example, :!% will open > the current file, but it leaves a DOS window handing around while the > file is open, which requires a hit-e

RE: Opening a file as the OS would

2008-08-21 Fir de Conversatie Robert Webb
Ingo Karkat wrote: > > What's the best way (on Windows) to open a file from vim in whatever > > Windows normally uses to open that file? For example, :!% will open > > the current file, but it leaves a DOS window handing around while the > > file is open, which requires a hit-enter to get rid of

RE: Opening a file as the OS would

2008-08-20 Fir de Conversatie John Beckett
> Ingo Karkat wrote: > Use ":silent ! start %"; the 'silent' will close the DOS > window immediately. I use this > map x :silent ! start "1" "%:p" to execute > the current file. ':p' makes this independent from the CWD, > the surrounding "" make it handle spaces. The "1" is the > optional "ti

RE: Opening a file as the OS would

2008-08-20 Fir de Conversatie Robert Webb
I wrote: > What's the best way (on Windows) to open a file from vim in whatever > Windows normally uses to open that file? For example, :!% will open > the current file, but it leaves a DOS window handing around while the > file is open, which requires a hit-enter to get rid of after closing > t

Re: Opening a file as the OS would

2008-08-20 Fir de Conversatie Andy Wokula
Robert Webb schrieb: > Hi, > > What's the best way (on Windows) to open a file from vim in whatever > Windows normally uses to open that file? For example, :!% will open > the current file, but it leaves a DOS window handing around while the > file is open, which requires a hit-enter to get rid

Re: Opening a file as the OS would

2008-08-20 Fir de Conversatie Ingo Karkat
On 20-Aug-08 16:16, Robert Webb wrote: > Hi, > > What's the best way (on Windows) to open a file from vim in whatever > Windows normally uses to open that file? For example, :!% will open > the current file, but it leaves a DOS window handing around while the > file is open, which requires a hit

Opening a file as the OS would

2008-08-20 Fir de Conversatie Robert Webb
Hi, What's the best way (on Windows) to open a file from vim in whatever Windows normally uses to open that file? For example, :!% will open the current file, but it leaves a DOS window handing around while the file is open, which requires a hit-enter to get rid of after closing the file. You a