On Sat, Feb 14, 2009 at 10:03, Matt Wozniski wrote:
> Which can't be detected in terminal vim - but I think this will get
> you pretty close: This command will cause vim to check if the file
> has been modified every time you let the cursor sit still for
> 'updatetime' seconds, so it won't be instantaneous, but will probably
> be when you're making your next edit to or movement around the buffer.
> You could also add CursorMoved,CursorMovedI if you wanted to be
> *really* agressive, but if your OS actually checks with the filesystem
> every time :checktime is run, that might get annoying...
>
> au CursorHold,CursorHoldI * exe bufnr("") . 'checktime'
Some OS's provide an API to passively monitor file/directory changes
(e.g., inotify on Linux: http://en.wikipedia.org/wiki/Inotify). It
could be nice to have such support in Vim, but unfortunately not all
OS's offer such mechanism.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---