Hi,

Calling update in an autocmd CursorMoved/I doesn't seem to trigger 
BufWritePost (or FileWritePost or FileAppendPost).

$ gvim -u NONE /tmp/foo.c

:au CursorMoved *.c silent up
:au CursorMovedI *.c silent up
:au BufWritePost *.c echo 'saved'

When I make changes to the file, it does call update but I never see 
'saved' in the status bar.
Writing the file explicitly using :w does trigger it.

Basically what I'm trying to do is call update and do something if the 
buffer was actually saved.

Thanks.

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