On Thu, October 13, 2011 1:39 am, Tim Chase wrote:
> On 10/12/11 16:56, Dan Wierenga wrote:
>> On Wed, Oct 12, 2011 at 8:32 AM, Tim
>> Chase<[email protected]>  wrote:
>>
>>> I'd like to tell Vim that, for certain filespecs (likely via
>>> an autocmd), I don't want to see this message and that YES,
>>> I do want to always overwrite the file.
>>
>> I think the autoread option is what you're after.
>>
>> :help 'autoread'
>
> I tried tinkering with this setting but didn't have any success
> with your suggestion:
>
>    bash$ vim existing.txt
>    :set autoread
>    :$put='a last line'
>
> (over in a second parallel terminal window, issue "touch
> existing.txt")
>
>    :w
>    (gives the WARNING in the Subject, same with ":w!").
>
> Same goes for trying to set 'noautoread' instead of 'autoread'.

Try setting 'buftype' to a non-empty value, maybe acwrite.
That shouldn't trigger that warning, but might have other unintended
side effects (and the help strongly advises, not to mess with that
option.)

regards,
Christian

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to