The % or # filename modifiers were expanded in a context where the buffer has no associated file name. Assign a file name with :file {name} before using these modifiers.
E499
vim The % or # filename modifiers were expanded in a context where the buffer has no associated file name. Assign a file name with :file {name} before using these modifiers.