In a line like autocmd InsertEnter <buffer> setlocal foo=bar
, are <buffer>
and setlocal
redundant? What are the functional differences between each of the following?
autocmd InsertEnter <buffer> setlocal foo=bar
autocmd InsertEnter <buffer> set foo=bar
autocmd InsertEnter setlocal foo=bar
autocmd InsertEnter set foo=bar
Also, is there any difference between using set
and setlocal
on settings that are "local to window" or "local to buffer" rather than global?