Sign inSign up

haron/vim-with-plugins

By haron

Updated almost 11 years ago

Adds support for the several useful vim plugins: Sensible, Dockerfile, Vim airline and CtrlP.

Image
5

9.4K

Dockerfile

FROM haron/vim:latest

MAINTAINER Oleg Khryptul <[email protected]> 

# Vim plugins

# Sensible
RUN git clone https://github.com/tpope/vim-sensible.git $HOME/.vim/bundle/vim-sensible && \

# Dockerfile syntax & snippet plugin
    git clone https://github.com/ekalinin/Dockerfile.vim.git $HOME/.vim/bundle/Dockerfile && \

# Vim airline
    git clone https://github.com/bling/vim-airline $HOME/.vim/bundle/vim-airline && \
    echo "set laststatus=2"                                    >> $HOME/.vimrc && \
    echo "let g:airline#extensions#tabline#enabled = 1"        >> $HOME/.vimrc && \
    echo "let g:airline#extensions#tabline#left_sep = ' '"     >> $HOME/.vimrc && \
    echo "let g:airline#extensions#tabline#left_alt_sep = '|'" >> $HOME/.vimrc && \

# CtrlP
    git clone https://github.com/kien/ctrlp.vim.git $HOME/.vim/bundle/ctrlp.vim

CMD vim