Skip to content

Commit 24a0072

Browse files
author
Josh Bodah
committed
add docker container file with isolated vim instance
1 parent 7e00da6 commit 24a0072

File tree

5 files changed

+20
-14
lines changed

5 files changed

+20
-14
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM ubuntu:latest
2+
3+
RUN apt-get update && apt-get install -yf vim
4+
5+
COPY test.vimrc /root/.vimrc

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,6 @@ We've decided not to include `mix format` integration into `vim-elixir`. If you'
5555
## Development
5656

5757
Run the tests: `bundle exec parallel_rspec spec`
58-
Spawn a vim instance with dev configs: `bin/spawn_vim`
58+
Spawn a container with vim and dev configs: `docker-compose build && docker-compose run vim`
5959

6060
[vim-dadbod]: https://github.com/tpope/vim-dadbod

bin/spawn_vim

Lines changed: 0 additions & 13 deletions
This file was deleted.

docker-compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: "2"
2+
services:
3+
vim:
4+
build:
5+
context: .
6+
dockerfile: Dockerfile
7+
volumes:
8+
- .:/root/vim-elixir
9+
working_dir: /root/vim-elixir

test.vimrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
set runtimepath+=/root/vim-elixir
2+
runtime ftdetect/elixir.vim
3+
filetype plugin indent on
4+
let g:elixir_indent_debug=1
5+
set ruler

0 commit comments

Comments
 (0)