Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alternate on-demand loading #60

Closed
aeosynth opened this issue Aug 19, 2018 · 2 comments
Closed

alternate on-demand loading #60

aeosynth opened this issue Aug 19, 2018 · 2 comments

Comments

@aeosynth
Copy link

function PackInit()
  if exists('*minpac#init')
    return
  end

  packadd minpac
  call minpac#init()
  call minpac#add('k-takata/minpac', {'type': 'opt'})

  " Additional plugins here.
  call minpac#add('Raimondi/delimitMate')
  call minpac#add('justinmk/vim-sneak')
endfunction

command! PackUpdate call PackInit() | call minpac#update()
command! PackClean  call PackInit() | call minpac#clean()

doesn't reload the vimrc, so no paranoia needed

k-takata added a commit that referenced this issue Aug 23, 2018
Add another example based on #60.
I still keep the old example for explaining how to make .vimrc
reloadable.

Also add an example for `:PackOpenDir`.
@k-takata
Copy link
Owner

I have updated the document in the devel branch based on your comment.

@aeosynth
Copy link
Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants