Skip to content

Commit

Permalink
More Vim improvements and adding my "push.sh" wrapper (especially to …
Browse files Browse the repository at this point in the history
…help remind that "-e TERM" is a Good Idea to get the most out of these changes)
  • Loading branch information
tianon committed Apr 10, 2015
1 parent eb33e44 commit 9f518cc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,26 @@ RUN apt-get update && apt-get install -y git vim --no-install-recommends && rm -

ENV LANG C.UTF-8

RUN git clone https://github.com/jtratner/vim-flavored-markdown.git ~/.vim
RUN mkdir ~/.vim ~/.vim/bundle ~/.vim/autoload
RUN set -x \
&& git clone https://github.com/tpope/vim-pathogen.git ~/.vim/bundle/pathogen \
&& ln -s ../bundle/pathogen/autoload/pathogen.vim ~/.vim/autoload/
RUN git clone https://github.com/jtratner/vim-flavored-markdown.git ~/.vim/bundle/ghmarkdown
RUN git clone https://github.com/nanotech/jellybeans.vim.git ~/.vim/bundle/jellybeans
RUN { \
echo 'scriptencoding utf-8'; \
\
echo 'execute pathogen#infect()'; \
\
echo 'syntax on'; \
echo 'filetype plugin indent on'; \
echo 'set list listchars=tab:»·,nbsp:_,extends:¬ noet ts=4 sw=4 nobackup noswapfile'; \
\
echo 'set background=dark'; \
echo 'colorscheme jellybeans'; \
\
echo 'au FilterWritePre * if &diff | setlocal wrap< | endif'; \
\
echo 'au BufNewFile,BufRead *.md,*.markdown setlocal filetype=ghmarkdown'; \
} > ~/.vimrc

Expand Down
8 changes: 8 additions & 0 deletions push.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -e

cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"

#docker pull $(awk '$1 == "FROM" { print $2 }' Dockerfile)
docker build -t docker-library-docs .
docker run -it --rm -v "$(pwd)":/wtf -w /wtf -e TERM --entrypoint 'bash' docker-library-docs -c './push.pl "$@"' -- "$@"

0 comments on commit 9f518cc

Please sign in to comment.