This works:
execute pathogen#infect('bundle/ruby/{}')
But this doesn't:
autocmd FileType * execute pathogen#infect('bundle/ruby/{}')
Nor this:
autocmd FileType * :execute pathogen#infect('bundle/ruby/{}')
Nor about 3 other things I tried.
UPDATE: This works:
autocmd BufWinEnter * execute '!ls'
But not this:
autocmd FileType * execute '!ls'
UPDATE 2:
Possibly related: FileType autocommand not working in Neovim
filetype on? Why do you use pathogen at all? – Matt Jun 11 '20 at 04:05