I am trying to use inotifywait to control specific folders and, if necessary, recompile. The problem is that I actively use vim, and when I edit vim, any modified file actually causes some "redundant" events, for example:
:w sass/somefolder/ CREATE 4913 sass/somefolder/ CREATE some sass/somefolder/ MODIFY some
It took me a while to realize that everything was really fine with inotifywait - I tried to use nano and everything worked as expected, only "MODIFY" starts and only once.
I tried to edit (for test purposes only, do not judge me) Emacs, and there are problems with Emacs - every time I press the triggers Ctrl-X + Ctrl + S MODIFY 3 times.
The question is, how can I solve problems with extra events in vim?
By the way, the directory and backupdir in my .vimrc not in the controlled folder.
UPD: This link explains why everything actually happens the way they happen, but I still don't know how to fix it. Well, of course, I can ignore the 4913 containing the string, but this is too stupid even for those trying to use inotify to compile SASS)))
UPD: VIM version - 7.3.429
vim inotify
shabunc
source share