문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top