Skip to content

Instantly share code, notes, and snippets.

@Xerkus
Last active February 2, 2016 13:07
Show Gist options
  • Save Xerkus/802e6fa9b1f5a505d8b1 to your computer and use it in GitHub Desktop.
Save Xerkus/802e6fa9b1f5a505d8b1 to your computer and use it in GitHub Desktop.
Docker image to get vim up and running

Clone this gist, cd into cloned directory

Run sudo docker build -t vim .
Run container with sudo docker run --rm -i -t vim

let g:startDir = '/workdir'
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
FROM fedora:23
MAINTAINER Xerkus
RUN dnf -y upgrade && dnf clean all
RUN dnf -y install \
vim \
vim-enhanced \
git \
&& dnf clean all
RUN mkdir -p /workdir
RUN git clone --recursive -b master https://github.com/Xerkus/vim-configuration.git /root/.vim
RUN ln -s /root/.vim/.vimrc /root/.vimrc
COPY config.local.vim /root/.vim/config.local.vim
RUN vim +BundleInstall! +BundleClean +qall
WORKDIR /workdir
CMD vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment