BufRead

The BufRead event:

Fires:

radio_button_unchecked

When starting to edit a new buffer, after reading the file into the buffer, and before processing modelines.

radio_button_unchecked

When writing an unnamed buffer in a way that the buffer gets a name

radio_button_unchecked

After successfully recovering a file for the "filetypedetect" group when executing ":filetype detect".

Notes:

radio_button_unchecked

Does not file after the :read file command when the file doesn't exist

radio_button_unchecked

BufWinEnter can be used to execute code after processing modelines.

See Also:

radio_button_uncheckedBufWinEnter