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

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

A few things require nvim at a specific version:

 - nvim 0.5.0 or later: Scala LSP (metals), autocomplete, bufdel, which-key, lualine ...
 - nvim 0.5.1 or later: telescope
 - nvim 0.6.1 or later: LSP support

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`.

Then run:

    :PlugUpdate

## Updating plugins

    :PlugUpdate

## Removing plugins

Remove the `Plug` line and run:

    :PlugClean

## TODO

Convert all to lua and support only nvim.