diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-10-15 08:20:09 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-10-15 08:21:19 +0800 |
commit | dbd172e7e953bdab7132bd635532295a4dc64af9 (patch) | |
tree | b96be849d6073d1a03ec3c60b1aa40eaab4bc867 /src/nvim/options.lua | |
parent | 9701cbf036aecf18e7d88681040c07d61c314ca6 (diff) | |
download | rneovim-dbd172e7e953bdab7132bd635532295a4dc64af9.tar.gz rneovim-dbd172e7e953bdab7132bd635532295a4dc64af9.tar.bz2 rneovim-dbd172e7e953bdab7132bd635532295a4dc64af9.zip |
vim-patch:5bcfb5a: runtime(doc): add some docs for file-watcher programs
fixes: vim/vim#15733
https://github.com/vim/vim/commit/5bcfb5a30cfd8e8574061bdd82a192f47aae09b5
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r-- | src/nvim/options.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 8c6d7bd9cf..3c3eaaf5a1 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -435,12 +435,13 @@ return { useful for example in source trees where all the files are symbolic or hard links and any changes should stay in the local source tree, not be propagated back to the original source. - *crontab* + *crontab* One situation where "no" and "auto" will cause problems: A program that opens a file, invokes Vim to edit that file, and then tests if the open file was changed (through the file descriptor) will check the backup file instead of the newly created file. "crontab -e" is an - example. + example, as are several |file-watcher| daemons like inotify. In that + case you probably want to switch this option. When a copy is made, the original file is truncated and then filled with the new text. This means that protection bits, owner and |