Skip to content

Thin wrapper of minpac, provides vim-plug-like experience

License

Notifications You must be signed in to change notification settings

TeoDev1611/plugpac.vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

plugpac

Overview

Plugpac is a thin wrapper over minpac, leveraging the power of Vim8(and Neovim) native package manager and jobs feature. It's even faster than vim-plug.

In my case, it takes 18ms to start up with 53 out 87 plugins loaded(the rest will be load on demand). While vim-plug takes 35ms.

Installation

Linux & Vim8:

git clone https://github.com/k-takata/minpac.git \
    ~/.vim/pack/minpac/opt/minpac
curl -fLo ~/.vim/autoload/plugpac.vim --create-dirs \
    https://raw.githubusercontent.com/TeoDev1611/plugpac.vim/master/plugpac.vim

Sample vimrc

call plugpac#begin()

" minpac
Pack 'k-takata/minpac', {'type': 'opt'}

Pack 'junegunn/vim-easy-align'

" On-demand loading
Pack 'scrooloose/nerdtree', { 'on':  'NERDTreeToggle' }
Pack 'tpope/vim-fireplace', { 'for': 'clojure' }

" Using a non-master branch
Pack 'rdnetto/YCM-Generator', { 'branch': 'stable' }

" Post-update hook
Pack 'Yggdroot/LeaderF', { 'do': {-> system('./install.sh')} }

" Sepcify commit ID, branch name or tag name to be checked out.
Pack 'tpope/vim-sensible', { 'rev': 'v1.2' }

call plugpac#end()

Reload .vimrc and :PackInstall to install plugins.
Pack command just handles for and on options(i.e. lazy load, implies 'type': 'opt'). Other options are passed to minpac#add directly. See minpac for more imformation.

Commands

  • PackInstall: Install newly added plugins.(minpac#update())
  • PackUpdate: Install or update plugins.(minpac#update())
  • PackClean: Uninstall unused plugins.(minpac#clean())
  • PackStatus: See plugins status.(minpac#status())
  • PackDisable: Move a plugin to minpac/opt.(minpac#update would move plugin back to minpac/start, unless the plugin is explicitly optional. Useful for disabling a plugin temporarily)

Credit

K.Takata(as the author of minpac)
Junegunn Choi(as the author of vim-plug)

License

MIT

About

Thin wrapper of minpac, provides vim-plug-like experience

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Vim Script 100.0%