diff --git a/.vim/autoload/vimrc/lazyload.vim b/.vim/autoload/vimrc/lazyload.vim index cc6ebd8..ef524b7 100644 --- a/.vim/autoload/vimrc/lazyload.vim +++ b/.vim/autoload/vimrc/lazyload.vim @@ -84,9 +84,9 @@ def A() const a = has('win32') ? '~/_vimrc' : '~/.vimrc' const b = a->expand()->resolve()->fnamemodify(':h') const c = getcwd() -exe 'cd' b +chdir(b) ec system($'git pull') -exe 'cd' c +chdir(c) exe $'source {has('win32') ? '~/vimfiles' : '~/.vim'}/autoload/vimrc/ezpack.vim' EzpackInstall enddef diff --git a/src/.vim/autoload/vimrc/lazyload.src.vim b/src/.vim/autoload/vimrc/lazyload.src.vim index 538fe9d..42eb19a 100644 --- a/src/.vim/autoload/vimrc/lazyload.src.vim +++ b/src/.vim/autoload/vimrc/lazyload.src.vim @@ -126,9 +126,9 @@ def PullDotfiles() const vimrcpath = has('win32') ? '~/_vimrc' : '~/.vimrc' const dotfilespath = vimrcpath->expand()->resolve()->fnamemodify(':h') const cwd = getcwd() - execute 'cd' dotfilespath + chdir(dotfilespath) echo system($'git pull') - execute 'cd' cwd + chdir(cwd) execute $'source {has('win32') ? '~/vimfiles' : '~/.vim'}/autoload/vimrc/ezpack.vim' EzpackInstall enddef