From a54697b6d55fb003491bd20acd7d9b386467572a Mon Sep 17 00:00:00 2001 From: Anton Yefremov Date: Wed, 26 Apr 2017 07:38:17 +0300 Subject: [PATCH] Add vim example --- vim/Dockerfile | 14 ++++++++++++++ vim/vimrc | 5 +++++ 2 files changed, 19 insertions(+) create mode 100644 vim/Dockerfile create mode 100644 vim/vimrc diff --git a/vim/Dockerfile b/vim/Dockerfile new file mode 100644 index 0000000..9369164 --- /dev/null +++ b/vim/Dockerfile @@ -0,0 +1,14 @@ +# get latest alpine image +FROM alpine:latest + +# install dependencies +RUN apk add --update \ + curl \ + vim \ + && rm -rf /var/cache/apk/* + +# copy vim config +COPY vimrc /etc/vimrc + +# set working directory +WORKDIR /usr/src diff --git a/vim/vimrc b/vim/vimrc new file mode 100644 index 0000000..cd72d5e --- /dev/null +++ b/vim/vimrc @@ -0,0 +1,5 @@ +syntax on +set number relativenumber +filetype plugin indent on +set tabstop=2 shiftwidth=2 expandtab +set backspace=indent,eol,start