Question

I have .vim folder in my home folder and pathogen.vim in .vim/autoload/ I followed the guide for pathogen on vim.org by put

"call pathogen#infect()" 

into my vimrc

when I run vim

I got "E117: Unknown function: pathogen#infect" my vimrc

runtime autoload/pathogen.vim
call pathogen#infect()
call pathogen#helptags()
set hlsearch
set incsearch
set ignorecase
set autoindent
set smartindent
syntax on
set number
set ruler
set showmatch

So frustrated with configuring vim

my vim version is:VIM - Vi IMproved 7.3

Was it helpful?

Solution

If pathogen.vim is in ~/.vim/autoload, trying adding "call pathogen#infect()" and "call pathogen#helptags()" to ~/.vimrc instead of /usr/share/vim/vimrc. It appears that you are trying to call functions defined in pathogen.vim from the system vimrc file before it can be loaded from your personal vim directory.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top