From an autocmd, how can I determine the name of the file or the

buffer number for which the autocommand is executed? You can use the special words <afile> or <abuf> in an autocmd to get the name of the file or the buffer number for which the autocommand is executed. For more information, read: :<afile> :<abuf> :<amatch>

Comments (1)


Pepsh Pepshinsky

Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE


Speak Your Mind