aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 8802420ca2362d9c1163ed7c25828b5cb9dc9abf (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
# My ~/.vim

Managed by [vim-plug](https://github.com/junegunn/vim-plug).

A few things require nvim 0.5.0 or later, but won't load if not possible.

For further information on installed plugins:

    :help local-additions

## Using it in a new location

My repo is in `~/.vim/`! You shouldn't have a `~/.vimrc` or `~/.vim` directory.

    cd && git clone --recursive https://github.com/reidrac/dotvim.git .vim

If you're not using vim 8; create a `.vimrc` with:

    runtime vimrc

This can be also be used to customise your local vim configuration without
having uncommitted changes in your repository.

In case of Neovim, you can link the provided `init.vim` into `~/.config/nvim/init.vim`.

Then it is recommended you run:

    :PlugUpgrade
    :PlugInstall

The *upgrade* part is only needed if the plugin manager is not up to date. Then
you can commit and push the updated version.

## Adding plugins

Add a new `Plug` entry in `~/.vim/vimrc`.

## Updating plugins

    :PlugUpdate

## Removing plugins

Remove the `Plug` line and run:

    :PlugClean