On Thu, Sep 24, 2009 at 4:47 PM, sc wrote:
>
> On Thursday 24 September 2009, Harry Putnam wrote:
>
>> I'm guessing the part of getting dumped into a blank buffer
>> in cmd mode is not supposed to happen?
>
> ok try this:
>
> remove all checktime and FileChangedShell lines, remove the
> definition of fname, you won't need that now
>
> replace the silent !chmod with
>
>        let ta = system("chmod 754 " . expand('%'))
>
> this subverts the intent of the original tip, but i've never
> seen the prompt to reload the buffer in this context, so at
> this point i don't care, this way works
>
> if i ever see that prompt, i'll add back the checktimes and
> FileChangedShell commands
>
> i think the problem centers on the use of '!' to execute shell
> commands

I've noticed in the past that ":sil !foo" misbehaves sometimes...
though for me, a :redraw! has always been enough to fix it, iirc.

~Matt

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to