Idan Kamara wrote:

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

:help autocmd-nested

-- 
A disclaimer for the disclaimer:
"and before I get a huge amount of complaints , I have no control over the
disclaimer at the end of this mail :-)" (Timothy Aldrich)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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