I am new to VIM. I tried to install pathogen.vim plugin. I will describe the folder structure.
--- /etc/vim
-vimrc
-vimrc.tiny
-autoload
-pathogen.vim
-bundle
I have not added anything in the bundle yet.
In the vimrc file I have added few lines
call pathogen#infect()
syntax on
filetype plugin indent on
But it was throwing the error whenever I was starting vim from my terminal.
ERROR -
Error detected while processing /usr/share/vim/vimrc:
line 57:
E117: Unknown function: pathogen#infect
Press ENTER or type command to continue
I then tried adding
runtime /etc/vim/autoload/pathogen.vim
on top of the calling the pathogen infect function, but nothing is happening. And in the error the path shown is /usr/share/vim/vimrc
, may be because etc/vim/vimrc is the symlink
. I am not sure, I am new to it.