I have the following setup.
I'm editing a file in vim and have multiple windows open
I have a shell script that I run from another window, which
externally modifies the file while it's still open with vim.
(I'm running latex on the file, and sometimes want to
change a flag that affects latex processing)
Every time I do this, when I next want to save the file in
vim, I get the message that the file has been externally
modified. Since I don't care about the modification made by this
particular shell script, though am concerned about the possibility of
other modifications,
Could somebody please tell me how I might use WatchForChanges
so that changes made by this one particular shell script are ignored,
so I don't keep getting this pesky prompt?
There are threads on the web that talk about using WatchForChanges as
a function in vimrc, but they are *way* over my head, so if somebody
could answer in newbie-speak I'd really appreciate it.
Not being able to get WatchForChanges to work, I've tried various
kludgy things like changing the last modification time of the file to
just before it was last operated on by vim, but for some reason that
doesn't seem to work.
Thanks very much for any suggestions.
--
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
No comments:
Post a Comment