Merge pull request #30 from tartansandal/the-docker-way

The Docker Way
This commit is contained in:
Luke Stephens (hakluke) 2019-09-29 16:33:55 +10:00 committed by GitHub
commit 2b00ca7b1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -197,3 +197,18 @@ Credit: @MasterDevX
```
:!x=$(echo "c"); x=$x$(echo "G"); x=$x$(echo "t"); x=$x$(echo "p"); x=$x$(echo "b"); x=$x$(echo "G"); x=$x$(echo "w"); x=$x$(echo "g"); x=$x$(echo "L"); x=$x$(echo "V"); x=$x$(echo "N"); x=$x$(echo "U"); x=$x$(echo "T"); x=$x$(echo "1"); x=$x$(echo "A"); x=$x$(echo "g"); x=$x$(echo "d"); x=$x$(echo "m"); x=$x$(echo "l"); x=$x$(echo "t"); x=$x$(echo "C"); x=$x$(echo "g"); x=$x$(echo "="); x=$x$(echo "="); $(echo $x | base64 --decode)
```
## The Docker way
Credit: @tartansandal
If you run Vim in a docker container like:
```
docker run --rm -it --name my-vim -v `pwd`:/root thinkca/vim
```
then you would normally exit vim by stopping the associated container:
```
docker stop my-vim
```