Tuesday, January 15, 2013

Short hint for all those who use vim and pathogen

Today, after updating my wokspace to latest version I encounter below error during vim running:
Error detected while processing function pathogen#runtime_append_all_bundles:
line    1:
E121: Undefined variable: source_path
E116: Invalid arguments for function string(source_path).') to pathogen#incubate('.string(source_path.'/{}').')')
E116: Invalid arguments for function 4_warn
Press ENTER or type command to continue
Quick look on pathogen runtime_append_all_bundles function and I found:
call s:warn('Change pathogen#runtime_append_all_bundles('.string(a:1).') to pathogen#incubate('.string(a:1.'/{}').')')
So simply replacing:
call pathogen#runtime_append_all_bundles()
with:
call pathogen#incubate()
in $HOME/.vimrc fix the problem.

No comments:

Post a Comment