Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/abernier/vim
- Owner: abernier
- Created: 2021-02-13T08:39:09.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-24T08:26:49.000Z (about 3 years ago)
- Last Synced: 2024-10-16T19:44:23.294Z (2 months ago)
- Language: Vim script
- Homepage: https://hub.docker.com/r/abernier/vim
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```