pathogent#infect
is a wrong name: there is a t
just before #
which should not be there.
But I see your problem is different: ~/.vim]$
suggests that you are doing source ~/.vimrc
while being in zsh. It is completely wrong, ~/.vimrc
is a vim configuration file and you must do source ~/.vimrc
in an existing vim session (in new vim session there is no need in doing so: vim sources file automatically). I still don’t get why you are having “no matches found error”, on my system zsh reports parse error near `\n'
for line call pathogen#infect()
which is what you are supposed to use.