Vim plugin that provides functions to interact with your package/lib manager for your favorite language and it's generic!
- Elixir, hex
- NodeJS, npm/yarn
- Ruby, rubygems
- Rust, cargo/cratos
This plugin uses mattn/webapi-vim.
Installation with Vundle You can install this plugin using Vundle by using the path on GitHub for this repository.
Plugin 'mattn/webapi-vim'
Plugin 'carakan/pmv.vim'
Automatically Pmv knows wich function needs to calculate functions for each package manager with this functions:
Show the latest version of the package
Leave your cursor on a line with a package name, or pass a name as only argument to get all the releases for given package in a little pane.
:PmvAllReleases
or
:PmvAllReleases mock
-------------------
0.1.3 (released on 2016-03-06)
0.1.2 (released on 2016-03-06)
0.1.1 (released on 2015-05-09)
0.1.0 (released on 2014-11-18)
Leave your cursor on a line with a package name, (like {:ecto
or even
{:credo, only: [:dev, :test]}]
) and let the magic happen.
Leave your cursor on a line with a package name, or pass a name as only argument to get info on the given package.
:PmvPackageInfo
or
:PmvPackageInfo portmidi
-------------------
Open the hexdocs page for the given package (or in the line under the cursor) in the system-default browser. This doesn't check if hexdocs are published for a package, so you might get some 404's here and there.
Note: this uses open
on OSX and xdg-open
on Linux systems.
Open the github repo for the given package (or in the line under the cursor) in the system-default browser.
Note: this uses open
on OSX and xdg-open
on Linux systems.
Search for a query
and show results.
By default is:
Shortcut | Command |
---|---|
<leader>pa |
:PmvAllReleases |
<leader>pd |
:PmvOpenDocs |
<leader>pi |
:PmvPackageInfo |
<leader>pm |
:PmvLastRelease |
<leader>po |
:PmvOpenRepoPage |
<leader>pp |
:PmvAppendRelease |
<leader>ps |
:PmvPackageSearch |
- Async API calls
- Test's