[3mdeb blog]

Thoughts dereferenced from scratchpad noise

Short hint for all those who use vim and pathogen

| Comments

Today, after updating my wokspace to latest version I encounter below error during vim running:

1
2
3
4
5
6
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:

1
call s:warn('Change pathogen#runtime_append_all_bundles('.string(a:1).') to pathogen#incubate('.string(a:1.'/{}').')')

So simply replacing:

1
call pathogen#runtime_append_all_bundles()

with:

1
call pathogen#incubate() in $HOME/.vimrc fix the problem.