diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1b4e084 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM ubuntu:latest + +RUN apt-get update -qq && \ + apt-get install -y \ + build-essential \ + vim # Just in case in a future, vim won't be included within latest ubuntu + +ENV EDITOR=vim + +WORKDIR /root + +COPY . ./.vim + +# Default to ASCII and modeful, comment out or delete next RUN section +# to use NerdFont and modless +RUN sed -i -- \ + 's/runtime statusline_nerdfont.vimrc/"runtime statusline_nerdfont.vimrc"/'\ + './.vim/modeful.vimrc' && \ + sed -i -- \ + 's/"runtime statusline_ascii.vimrc"/runtime statusline_ascii.vimrc/' \ + './.vim/modeful.vimrc' && \ + sed -i -- 's/runtime modeless.vimrc/runtime modeful.vimrc/' './.vim/vimrc' diff --git a/README.md b/README.md index 4f7af54..65a0c0f 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ Contents ------- * [Installation](#installation) +* [Run without install](#docker) * [Nerd font](#nerd-font) * [Key bindings](#key-bindings) * [Files in this repository](#files-in-this-repository) @@ -124,6 +125,17 @@ else fi ``` +Docker +------ + +Want to give it a try before installing? Just copy/pasta these two commands: + +```bash +docker build . -t modeless_vim:latest +docker run -it modeless_vim bash +``` + +VoilĂ  Nerd font ---------