@@ -5,55 +5,89 @@ shipped with Vim for the Erlang programming language.
5
5
6
6
## Installation
7
7
8
- ### Installing manually
8
+ <details >
9
+ <summary >Vim's built-in package manager</summary >
9
10
10
- 1 . Clone this repository:
11
+ This is the recommended installation method if you use at least Vim 8 and you
12
+ don't use another package manager.
11
13
12
- ```
13
- $ mkdir -p ~/.vim/bundle
14
- $ cd ~/.vim/bundle
15
- $ git clone https://github.com/vim-erlang/vim-erlang-runtime
16
- ```
14
+ Information about Vim's built-in package manager: [ ` :help packages ` ] .
17
15
18
- 2. Add the repository path to `runtimepath` in your `.vimrc` :
16
+ Installation steps :
19
17
20
- ```
21
- :set runtimepath^=~/.vim/bundle/vim-erlang-runtime/
22
- ```
18
+ 1 . Clone this repository (you can replace ` foo ` with the directory name of your
19
+ choice):
23
20
24
- ### Installing manually, alternative method
25
-
26
- 1. Copy `syntax/erlang.vim` into `~/.vim/syntax/`.
21
+ ``` sh
22
+ $ git clone https://github.com/vim-erlang/vim-erlang-runtime.git \
23
+ ~ /.vim/pack/foo/start/vim-erlang-runtime
24
+ ```
27
25
28
- 2. Copy `indent/erlang.vim` into `~/.vim/indent/`.
26
+ 2. Restart Vim.
27
+ < /details>
29
28
30
- 3. Copy `ftplugin/erlang.vim` into `~/.vim/ftplugin/`.
29
+ < details>
30
+ < summary> Pathogen< /summary>
31
31
32
- ### Installing using vim-plug
32
+ Information about Pathogen: [Pathogen repository].
33
33
34
- 1. Install vim-plug using the [instructions][vim-plug].
34
+ Installation steps:
35
35
36
- 2. Add vim-erlang-runtime to your plugin list in `.vimrc` by inserting the
37
- following lines:
36
+ 1. Clone this repository:
38
37
39
38
```
40
- '' Erlang Runtime
41
- Plug ' vim-erlang/ vim-erlang-runtime'
39
+ $ git clone https://github.com/vim-erlang/vim-erlang-runtime.git \
40
+ ~ /. vim/bundle/ vim-erlang-runtime
42
41
```
43
42
44
- between
43
+ 2. Restart Vim.
44
+ < /details>
45
+
46
+ < details>
47
+ < summary> Vundle< /summary>
48
+
49
+ Information about Vundle: [Vundle repository].
50
+
51
+ Installation steps:
52
+
53
+ 1. Add ` vim-erlang-runtime` to your plugin list in ` .vimrc` by inserting
54
+ the line that starts with ` Plugin` :
45
55
46
56
```
47
- call plug#begin('~/.vim/plugged')
57
+ call vundle#begin ()
58
+ [...]
59
+ Plugin ' vim-erlang/vim-erlang-runtime'
60
+ [...]
61
+ call vundle#end ()
48
62
```
49
63
50
- and
64
+ 2. Restart Vim.
65
+
66
+ 3. Run ` :PluginInstall` .
67
+ < /details>
68
+
69
+ < details>
70
+ < summary> Vim-Plug< /summary>
71
+
72
+ Information about Vim-Plug: [vim-plug repository].
73
+
74
+ Installation steps:
75
+
76
+ 1. Add ` vim-erlang-runtime` to your plugin list in ` .vimrc` by inserting the
77
+ line that starts with ` Plug` :
51
78
52
79
```
80
+ call plug#begin ()
81
+ [...]
82
+ Plug ' vim-erlang/vim-erlang-runtime'
83
+ [...]
53
84
call plug#end ()
54
85
```
55
86
87
+ 2. Restart Vim.
88
+
56
89
3. Run ` :PlugInstall` .
90
+ < /details>
57
91
58
92
# # Tips
59
93
@@ -261,14 +295,16 @@ For more details, see the [vader][vader] repository.
261
295
[` :help ftplugin` ]: https://vimhelp.org/usr_41.txt.html#ftplugin
262
296
[` :help indent-expression` ]: https://vimhelp.org/indent.txt.html#indent-expression
263
297
[` :help new-filetype-scripts` ]: https://vimhelp.org/filetype.txt.html#new-filetype-scripts
298
+ [` :help packages` ]: https://vimhelp.org/repeat.txt.html#packages
264
299
[` :help syntax` ]: https://vimhelp.org/syntax.txt.html#syntax
265
300
[` ftdetect/erlang.vim` ]: ftdetect/erlang.vim
266
301
[` ftplugin/erlang.vim` ]: ftplugin/erlang.vim
267
302
[` indent/erlang.vim` ]: indent/erlang.vim
268
303
[` syntax/erlang.vim` ]: syntax/erlang.vim
269
304
[` test` ]: test
305
+ [Pathogen repository]: https://github.com/tpope/vim-pathogen
270
306
[vader]: https://github.com/junegunn/vader.vim
271
- [vim-plug]: https://github.com/junegunn/vim-plug
307
+ [vim-plug repository ]: https://github.com/junegunn/vim-plug
272
308
[vim-src/runtime/compiler/erlang.vim]: https://github.com/vim/vim/blob/master/runtime/compiler/erlang.vim
273
309
[vim-src/runtime/doc/syntax.txt]: https://github.com/vim/vim/blob/master/runtime/doc/syntax.txt
274
310
[vim-src/runtime/filetype.vim]: https://github.com/vim/vim/blob/master/runtime/filetype.vim
@@ -279,3 +315,4 @@ For more details, see the [vader][vader] repository.
279
315
[vim-src/runtime/synmenu.vim]: https://github.com/vim/vim/blob/master/runtime/synmenu.vim
280
316
[vim-src/runtime/syntax/erlang.vim]: https://github.com/vim/vim/blob/master/runtime/syntax/erlang.vim
281
317
[vim-src/src/testdir/test_filetype.vim]: https://github.com/vim/vim/blob/master/src/testdir/test_filetype.vim
318
+ [Vundle repository]: https://github.com/VundleVim/Vundle.vim
0 commit comments