From 7287943473c42b7313099736c18c01b6d626757b Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 12 Oct 2016 23:17:09 +0100 Subject: [PATCH] Add ALE to the Vim runtimepath in the Docker image so it can run tests. --- Makefile | 2 +- test/vimrc | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b0bbf3ee..5572ce7e 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ IMAGE ?= w0rp/ale -DOCKER = docker run -a stderr --rm -v $(PWD):/testplugin -v $(PWD)/test:/home "$(IMAGE)" +DOCKER = docker run -a stderr --rm -v $(PWD):/testplugin -v $(PWD)/test:/home -v ${PWD}:/home/ale "$(IMAGE)" test-setup: docker images -q $(IMAGE) || docker pull $(IMAGE) diff --git a/test/vimrc b/test/vimrc index 043f75b9..ba65ebf7 100644 --- a/test/vimrc +++ b/test/vimrc @@ -1,7 +1,10 @@ +" vint: -ProhibitSetNoCompatible + " Load builtin plugins " We need this because run_vim.sh sets -i NONE -set rtp=/home/vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,/home/vim/after -set rtp+=/vader +set runtimepath=/home/vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,/home/vim/after +set runtimepath+=/home/ale +set runtimepath+=/vader " The following is just an example filetype plugin indent on @@ -18,4 +21,4 @@ set foldlevelstart=10 set foldnestmax=10 set ttimeoutlen=0 -let mapleader=',' +let g:mapleader=','