~bpv/pm

3d6091a253f3228df3c74c9dab837f750fcd3719 — Bryce Vandegrift 5 months ago b8ef69f
Added installation instructions for pm docs

This took me wayyy longer than it should have.
2 files changed, 37 insertions(+), 0 deletions(-)

M README.md
M pm.txt
M README.md => README.md +14 -0
@@ 22,12 22,26 @@ Requirements:
curl -fLo ~/.vim/plugin/pm.vim --create-dirs https://git.sr.ht/~bpv/pm/blob/master/pm.vim
```

#### Documentation for Vim

``` sh
curl -fLo ~/.vim/doc/pm.txt --create-dirs https://git.sr.ht/~bpv/pm/blob/master/pm.txt
vim -c "helptags ~/.vim/doc | q"
```

### NeoVim

``` sh
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'
```

#### Documentation for NeoVim

``` sh
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/doc/pm.txt --create-dirs https://git.sr.ht/~bpv/pm/blob/master/pm.txt'
nvim -c "lua dir = os.getenv('XDG_DATA_HOME') or os.getenv('HOME') .. '/.local/share' ; vim.cmd('helptags ' .. dir .. '/nvim/site/doc') ; vim.cmd(':q!')"
```

## Usage

Create plugin list

M pm.txt => pm.txt +23 -0
@@ 42,6 42,29 @@ If you are using NeoVim run:
{5} https://git-scm.com/


< Installing docs >________________________________________________________~
                                                       *pm-installing-docs*

If you are using Vim run:
>
 curl -fLo ~/.vim/doc/pm.txt --create-dirs \
 https://git.sr.ht/~bpv/pm/blob/master/pm.txt
 vim -c "helptags ~/.vim/doc | q"
<

If you are using NeoVim run:
>
 sh -c \
 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/doc/pm.txt \
 --create-dirs https://git.sr.ht/~bpv/pm/blob/master/pm.txt'
 nvim -c \
 "lua
 dir = os.getenv('XDG_DATA_HOME') or os.getenv('HOME') .. '/.local/share'
 vim.cmd('helptags ' .. dir .. '/nvim/site/doc')
 vim.cmd(':q!')"
<


SETUP                                                             *pm-setup*
============================================================================