From d23a18db78bbc064265374dd371da815ca2dd137 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Mon, 4 May 2020 13:35:53 -0400 Subject: [PATCH] Pass filename to vim build and run aliases --- vimrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index 33ca282..f254d9c 100644 --- a/vimrc +++ b/vimrc @@ -870,12 +870,12 @@ function! StopRunTask() endfunction function! ExecuteRunScript() - exec "AsyncRun! -post=call\\ StopRunTask() ./run" + exec "AsyncRun! -post=call\\ StopRunTask() ./run %" endfunction function! SilentBuild() AsyncStop - exec "AsyncRun! -save=2 -post=call\\ HideAsyncResults() ./build*" + exec "AsyncRun! -save=2 -post=call\\ HideAsyncResults() ./build* %" endfunction " Show results window the moment the async job starts @@ -891,7 +891,7 @@ nnoremap bc :call ToggleBuildResults() noremap :call HideBuildResultsAndClearErrors() " Execute build script -nnoremap b :AsyncRun! -save=2 ./build* +nnoremap b :AsyncRun! -save=2 ./build* % nnoremap :call SilentBuild() " Execute run script