aboutsummaryrefslogtreecommitdiff
path: root/README.rst
blob: 75d6a6aca280f16aca30f74994f6049bb6e5b29a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
plugVim
=======

A vim plugin manager that uses vim 8's native plugin support and git
submodules. If you want more information on the basics of this I
recommend reading `Vim: So long Pathogen, hello native package loading
<https://shapeshed.com/vim-packages/>`_, as it was my reference when
creating the script.

Table of Contents
-----------------

- `Installation`_
- `Usage`_
- `Examples`_
- `License`_


Installation
------------

.. code ::

  git clone git@github.com:tuckerevans/plugvim.git
  cd plugvim
  make install

Usage
-----

Commands
~~~~~~~~
- install
- update
- remove
- list
- help
- version

Options
~~~~~~~

-  **-g "local git directory"** default: ~/dotfiles/
-  **-d "directory containing .vim"** default: GIT_REPO/vim/
-  **-o** place plugin in opt folder instead of start.
-  **-c** commit changes
-  **-l** log internal command output in ~/.plug/date.log instead of /tmp/PLUGVIM-date.log

Examples
~~~~~~~~
Installing `gitgutter <github.com/airblade/vim-gitgutter>`
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Basic:
    :code:`plug install https://github.com/airblade/vim-gitgutter.git`
- Install gitgutter and commit changes:
    :code:`plug install -oc https://github.com/airblade/vim-gitgutter.git`
- In a different Git repository (not \*/dotfiles):
    :code:`plug install -g path/to/different/repo https://github.com/airblade/vim-gitgutter.git`

Updating all plugins
^^^^^^^^^^^^^^^^^^^^
- Basic:
    :code:`plug update`
- With a set number(8) of threads:
    :code:`plug update -j 8`

Removing `gitgutter <github.com/airblade/vim-gitgutter>`
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Basic:
    :code:`plug remove gitgutter`
- If gitgutter was installed in opt directory:
    :code:`plug remove -o gitgutter`
- If .vim is not located in ``GIT_REPO/vim``
    :code:`plug remove -d path/to/parent/of/.vim`

License
-------
`MIT <github.com/tuckerevans/plugvim/blob/master/LICENSE>`_