2

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

pythoniku
  • 3,532
  • 6
  • 23
  • 30

1 Answers1

1

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.

chepner
  • 497,756
  • 71
  • 530
  • 681
  • Hi! While following your advice above does remove the error for me, my plugins still don't work. I don't have jade highlighting for instance and I can use the surrounds plugin. – Costa Michailidis Feb 04 '13 at 19:43