A Docker container to run neovim with plugins to assist Rust development.
- Clone this repository:
$ git clone [email protected]:thled/docker-vim-rust.git
- Change to project directory:
$ cd docker-vim-rust
- Build image:
$ docker build -t rvim .
$ docker run --rm -it -v (pwd):/data rvim
-
Useful key bindings: https://gist.github.com/thled/a6fcf4a02108598ae9ba5a8ab01d84e0#editor-neovim
-
Remap detach keys:
$ echo '{ "detachKeys": "ctrl-q,q" }' > ~/.docker/config.json
-
Save as alias "rvim":
- Fish:
$ function rvim docker run --rm -it -v (pwd):/data rvim end $ funcsave rvim
- Bash:
$ echo 'alias rvim="docker run --rm -it -v $(pwd):/data rvim"' >> ~/.bashrc