Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abernier/vim

My portable vim packaged as a Docker image
https://github.com/abernier/vim

Last synced: about 1 month ago
JSON representation

My portable vim packaged as a Docker image

Awesome Lists containing this project

README

        

[![](https://img.shields.io/badge/%F0%9F%90%B3-abernier%2Fvim-%23179cec)](https://hub.docker.com/r/abernier/vim)

```sh
$ docker run --rm -it abernier/vim
```

# `vimm` alias

In your `~/.bash_profile`, add:

```sh
vimm() {
docker run --rm -it \
-v $(pwd):/media/host \
-w /media/host
abernier/vim $*
}
```

then:

```sh
$ vimm .
```

You are now running container's vim.

NB:
- You host's current dir was mounted on container's `/media/host` folder.
- container's working dir is now set to it.
- Any `vimm` command parameters will be forwarded to image ENTRYPOINT `vim`, thanks to `$*`

# Release

```sh
$ git submodule init
$ docker build -t abernier/vim .
$ docker push abernier/vim
```

## Updating plugins

```sh
git submodule update --remote --merge
git commit
```

## Removing a plugin

```sh
git submodule deinit .vim/pack/plugins/start/lightline
git commit
```