I'm trying to make autocommands that will run only when the buffer is a man page (:Man
), but I can't get the right pattern as I'm not too familiar with regex and globs. Here's what I've tried so far:
autocmd! BufEnter *man://* call Myfunc()
autocmd! BufEnter [^man://]* call Myfunc()
but nothing seems to work. Any alternative ideas are okay too.