GithubHelp home page GithubHelp logo

rickyson96 / plugpac.vim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bennyyip/plugpac.vim

0.0 1.0 0.0 11 KB

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

License: MIT License

Vim Script 100.00%

plugpac.vim's Introduction

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/bennyyip/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

plugpac.vim's People

Contributors

bennyyip avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.