Skip to content

Commit 942a17d

Browse files
committed
light brush up of README
1 parent 47d05df commit 942a17d

File tree

1 file changed

+33
-13
lines changed

1 file changed

+33
-13
lines changed

README.md

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,44 +16,64 @@ Features:
1616

1717
## Installation
1818

19+
`vim-elixir` can be installed either with a plugin manager or by directly copying the files into your vim folders (location varies between platforms)
20+
1921
### Plugin Managers
2022

23+
If you are using a plugin manager then add `vim-elixir` the way you would any other plugin:
24+
2125
```bash
22-
# vim 8 native package loading
23-
# http://vimhelp.appspot.com/repeat.txt.html#packages
26+
# Using vim 8 native package loading
27+
# http://vimhelp.appspot.com/repeat.txt.html#packages
2428
git clone https://github.com/elixir-lang/vim-elixir.git ~/.vim/pack/my-packages/start/vim-elixir
25-
```
2629

27-
```bash
28-
# pathogen
30+
# Using pathogen
2931
git clone https://github.com/elixir-lang/vim-elixir.git ~/.vim/bundle/vim-elixir
3032
```
3133

3234
```viml
33-
" vim-plug
35+
" Using vim-plug
3436
Plug 'elixir-editors/vim-elixir'
3537
36-
" Vundle
38+
" Using Vundle
3739
Plugin 'elixir-editors/vim-elixir'
3840
39-
" NeoBundle
41+
" Using NeoBundle
4042
NeoBundle 'elixir-editors/vim-elixir'
4143
```
4244

43-
### Manual installation
45+
### Manual Installation
46+
47+
If you are not using a package manager then you can use the provided `manual_install.sh` script to copy the files into their respective homes.
48+
49+
Run [./manual_install.sh](manual_install.sh) to copy the contents of each directory in the respective directories inside `~/.vim`.
4450

45-
Run [./manual_install.sh](manual_install.sh) to copy the contents of each directory in the respective directories inside
46-
`~/.vim`.
51+
## Notes/Caveats
4752

48-
## `mix format` Integration
53+
### `mix format` Integration
4954

50-
We've decided not to include `mix format` integration into `vim-elixir`. If you'd like to set it up yourself, you have the following options:
55+
We've decided not to include `mix format` integration into `vim-elixir`.
56+
If you'd like to set it up yourself, you have the following options:
5157

5258
* For asynchronous execution of the formatter, have a look at [vim-mix-format](https://github.com/mhinz/vim-mix-format)
5359
* Add it as a `formatprg` (e.g. `setlocal formatprg=mix\ format\ -`)
5460

61+
Why isn't this supported? We've run into two major issues with calling out to `mix format`.
62+
First `mix format` would not work unless your program compiled.
63+
Second `mix format` added an external process dependency to `vim-elixir`.
64+
65+
If someone really wanted to try and add this then we might be able to model it after `vim-go`'s `go fmt` integration
66+
which I think could be acceptable to merge into master.
67+
5568
## Development
5669

70+
### Maintenance Help
71+
72+
I no longer use Elixir regularly and would love help maintaining this plugin.
73+
If you get a lot of value from it, know vimscript well, or eager to learn about it then feel free to get in touch (GH issue, Elixir Slack, etc)
74+
75+
### Running the Tests
76+
5777
Run the tests: `bundle exec parallel_rspec spec`
5878

5979
Spawn a container with vim and dev configs: `docker-compose build && docker-compose run vim`

0 commit comments

Comments
 (0)