Compare commits

...

2 Commits

Author SHA1 Message Date
76acb9cd90 Once again fix minpac initialization 2020-12-10 17:41:17 +00:00
48913e09c3 Fix isdirectory() uses with relative paths
After upgrading VIM 8.2 (2019 Dec 12, compiled Oct 24 2020 16:26:37)
uses of `isdirectory()` with relative paths in `$MYVIMRC` stopped
working. These must now be absolute paths.
2020-12-10 17:38:58 +00:00
2 changed files with 8 additions and 8 deletions

View File

@ -1,10 +1,10 @@
" minpac
command! PackUpdate packadd minpac | source $MYVIMRC |
\ call minpac#init() | call minpac#update('', {'do': 'call minpac#status()'})
command! PackStatus packadd minpac | source $MYVIMRC |
\ call minpac#init() | call minpac#status()
command! PackClean packadd minpac | source $MYVIMRC |
\ call minpac#init() | call minpac#clean()
function! s:minpac_init() abort
packadd minpac | call minpac#init() | source $MYVIMRC
endfunction
command! PackUpdate call s:minpac_init() | call minpac#update('', {'do': 'call minpac#status()'})
command! PackStatus call s:minpac_init() | call minpac#status()
command! PackClean call s:minpac_init() | call minpac#clean()
" Sort Python Imports
command! ISort call do#isort()

4
vimrc
View File

@ -202,11 +202,11 @@ Pack 'jrozner/vim-antlr'
Pack 'greymd/oscyank.vim', {'type': 'opt'}
let g:use_osc52 = $TMUX !=# '' &&
\ trim(system('tmux show-options -g set-clipboard')) ==# 'set-clipboard on'
if g:use_osc52 && isdirectory('pack/minpac/opt/oscyank.vim')
if g:use_osc52 && isdirectory(expand('~/.vim/pack/minpac/opt/oscyank.vim'))
packadd oscyank.vim
endif
" Load YouComplteMe if termdebug plugin is not loaded.
if !exists(':Termdebug') && isdirectory('pack/minpac/opt/YouCompleteMe')
if isdirectory(expand('~/.vim/pack/minpac/opt/YouCompleteMe'))
packadd YouCompleteMe
endif