From d7622210fadbbc137b4a8b445d05ed33f1f41516 Mon Sep 17 00:00:00 2001 From: gryf Date: Wed, 2 Jun 2021 16:41:06 +0200 Subject: [PATCH] Added g:rubber_command for pointing to the compile command --- compiler/rubber.vim | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/compiler/rubber.vim b/compiler/rubber.vim index a0905d9..474b8ba 100644 --- a/compiler/rubber.vim +++ b/compiler/rubber.vim @@ -5,6 +5,11 @@ if exists("current_compiler") endif let current_compiler = "rubber" -CompilerSet makeprg=rubber\ -d\ % -"CompilerSet efm=%f:%l:\ [%t]%m,%f:%l:%m +if exists('g:rubber_command') + execute 'CompilerSet makeprg='.escape(g:rubber_command, ' \|"').'\ %' +else + CompilerSet makeprg=rubber\ -d\ % +endif + +"CompilerSet efm=%f:%l:\ [%t]%m,%f:%l:%m