Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Vim Plug - my favorite plugin manager

Vim Plug - my favorite plugin manager

I will go through vim-plug and tell you why it's the best plugin manager for Vim in the world.

Matthias Günther

February 20, 2015
Tweet

More Decks by Matthias Günther

Other Decks in Technology

Transcript

  1. Vim plug

    View Slide

  2. Who Am I
    @wikimatze
    Running vimberlin.de
    Writing padrinobook.com

    View Slide

  3. The pro
    easy setup
    concise, intuitive syntax
    parallel installation/update
    on-demand loading

    View Slide

  4. Installation
    curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

    View Slide

  5. Example vimrc
    call plug#begin('~/.vim/plugged')
    Plug 'junegunn/seoul256.vim'
    Plug 'junegunn/vim-easy-align'
    call plug#end()

    View Slide

  6. On-demand loading
    Plug 'Eckankar/vim-latex-folding', { 'for': 'tex' }
    Plug 'othree/html5-syntax.vim', { 'for': ['html', 'md'] }
    Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }

    View Slide

  7. Using git URL and tag
    Plug 'https://github.com/Shougo/neosnippet.vim'
    Plug 'bling/vim-airline' , 'v0.7'
    Plug 'wikimatze/tocdown', { 'tag': 'v.1.0.1', 'on': 'TocdownToggle' }

    View Slide

  8. Post-update hook
    Plug 'Shougo/vimproc.vim', { 'do': 'make' }

    View Slide

  9. Commands I
    PlugInstall|PlugUpdate
    [name ...] … install/update
    plugins
    PlugDiff … see the
    updated changes from the
    previous PlugUpdate

    View Slide

  10. Commands II
    PlugClean[!] … remove
    unused directories (! without
    prompt)
    PlugUpgrade … upgrade
    vim-plug itself

    View Slide

  11. Commands III
    PlugStatus … Check
    the status of plugins
    (loaded?)
    PlugSnapshot [output
    path] … generate script for
    restoring the current
    snapshot of the plugins

    View Slide

  12. Book Club
    https://www.flickr.com/photos/
    infowidget/2319637289

    View Slide

  13. The VimL Primer
    https://pragprog.com/book/
    bkviml/the-viml-primer

    View Slide

  14. Thanks
    For being here and make
    Vimberlin happen!

    View Slide