Entering in vim
:au FileType netrw echom "ft is now netrw"
Afterwards, I open a netrw window with
Now, I expect to have a message entry in
:messages. However, no message is there. Why is there no message?
According to "How to display line number in netrw?":
If you do anything based on an autocmd, it's likely that netrw is doing something as well and will overwrite whatever you did.
Afaik, this relates in particular to vim settings which have to be adjusted with
g:netrw_bufsettings instead of
au FileType netrw set nu.
My motivation for the question is tpope vinegar plugin which uses following autocmd:
augroup vinegar autocmd! autocmd FileType netrw call s:setup_vinegar() augroup END
where I want to modify
s:setup_vinegar(). However, my modification has no effect.
To make the comment by Karl Yngve Lervåg more noticeable, I add the working
:au FileType netrw unsilent echom "ft is now netrw"