Skip to content

Commit e63202f

Browse files
committed
Fix pathogen warning from runtime_append_all_bundles deprecation
1 parent 41abda8 commit e63202f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ohmyvim/scripts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def __init__(self):
305305
fd.write('source %s\n' % join(self.ohmyvim, 'env.vim'))
306306
fd.write('source %s\n' % join(self.runtime, 'vim-pathogen',
307307
'autoload', 'pathogen.vim'))
308-
fd.write('call pathogen#runtime_append_all_bundles()\n')
308+
fd.write('call pathogen#incubate()\n')
309309
fd.write('source %s\n' % join(self.ohmyvim, 'theme.vim'))
310310
fd.write('source %s\n' % join(self.runtime, 'oh-my-vim',
311311
'plugin', 'ohmyvim.vim'))

plugin/ohmyvim.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function! OhMyVim(args)
1414
echo 'OhMyVim v'.split(system(g:ohmyvim.' version'), '\n')[0]
1515
elseif a:splitted[0] == 'theme' && len(a:splitted) > 1
1616
call system(g:ohmyvim.' '.a:args)
17-
call pathogen#runtime_append_all_bundles()
17+
call pathogen#incubate()
1818
source ~/.vim/ohmyvim/theme.vim
1919
else
2020
echo system(g:ohmyvim.' '.a:args)

0 commit comments

Comments
 (0)