When comparing a buffer to it's on disk file, I regularly do (omitting the
:botright vnew :r ++edit #
According to https://vimhelp.org/insert.txt.html#%3Aread the option ++edit should set the options of fileformat and fileencoding for the buffer to what regularly
file would give, unless I interpret the documentation wrong. Problem is, that none of the options of fileformat, fileencoding , ... get set for the
What am I doing wrong?
Edit (what I am expecting): Assume I am editing a file minimal.yaml. What I get with
:e minimal.yaml is syntax highlighting for that file (could be json, whatever file format).
If another process changes that file on disk and I revisit that file in a
vnew | r ++edit # buffer, that new buffer has no fileformat set, while I expect it to be of type yaml.