On Wed, Sep 07, 2011 at 02:16:59PM -0700, Gary Johnson wrote:
> When a buffer is modified by a BufRead autocommand or by a filetype
> plugin, 'modified' is not set.

This is documented in the text below ":help gzip-example".

  The commands executed for the BufNewFile, BufRead/BufReadPost,
  BufWritePost, FileAppendPost and VimLeave events do not set or reset
  the changed flag of the buffer. … If you do want the buffer to be
  marked as modified, set the 'modified' option.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui