On Thu, 4 May 2006, Eric Arnold wrote:

On 5/3/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:
I want to trap changes in the value of 'modified'  (execute
my  commands when first change is done to the
buffer, and when undo reverts buffer to unmodified state).
How can I achieve this ?

Note that this is not necessarity connected to Insert mode.
Buffer can easily become modified without entering insert mode.

Yakov


I'm not sure if it's what you're looking for, but the tabline is
triggered on the 'modified' setting.
[snip]

You can also use the statusline. A simple test:

  fun Test()
    return &modified
  endf

  :set laststatus=2 statusline=%{Test()}

HTH :)
--
Gerald

Reply via email to