~bpv/pm

Stupidly Simple Vim/NeoVim Plugin Manager
Update README.md
Added PurgePlugins command
Quit download if g:plugins is not defined

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~bpv/pm
read/write
git@git.sr.ht:~bpv/pm

You can also use your local clone with git send-email.

#pm

A stupidly simple Vim/NeoVim plugin manager

#Why?

Vim and NeoVim now have plugin management builtin so I have no need for a "bloated" plugin manager that is thousands of lines long. All I need is a Vim/NeoVim script that will download and update my plugins.

#Install

Requirements:

#Vim

curl -fLo ~/.vim/plugin/pm.vim --create-dirs https://git.sr.ht/~bpv/pm/blob/master/pm.vim

#NeoVim

sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/plugin/pm.vim --create-dirs https://git.sr.ht/~bpv/pm/blob/master/pm.vim'

#Usage

Create plugin list

#Example

In your .vim file (Vim) or init.vim (NeoVim) file create a list variable named g:plugins.

let g:plugins = ["https://github.com/ap/vim-css-color.git", "https://git.sr.ht/~k1nkreet/gemivim"]

#Commands

  • DownloadPlugins: Downloads all plugins from thier Git repos
  • UpdatePlugins: Updates all installed plugins
  • PurgePlugins: Removes all plugins not defined in g:plugins
  • UpdatePM: Downloads and updates pm