From 38bcca7ba339b2f4cbf2c7ff74382db5a7d94dfc Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 10 Apr 2015 11:40:36 -0600 Subject: [PATCH] Improve our Vim configuration for pushing descriptions --- Dockerfile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b14fb6aaf..43cb6f8b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,18 @@ RUN cpanm --notest IO::Socket::SSL RUN cpanm Term::ReadKey -RUN apt-get update && apt-get install -y vim && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y git vim --no-install-recommends && rm -rf /var/lib/apt/lists/* + +ENV LANG C.UTF-8 + +RUN git clone https://github.com/jtratner/vim-flavored-markdown.git ~/.vim +RUN { \ + echo 'scriptencoding utf-8'; \ + echo 'syntax on'; \ + echo 'filetype plugin indent on'; \ + echo 'set list listchars=tab:»·,nbsp:_,extends:¬ noet ts=4 sw=4 nobackup noswapfile'; \ + echo 'au BufNewFile,BufRead *.md,*.markdown setlocal filetype=ghmarkdown'; \ + } > ~/.vimrc COPY . /usr/src/docker-library-docs WORKDIR /usr/src/docker-library-docs