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'.

-tim




--
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