+ asyncrun

This commit is contained in:
Stefan Liebl 2016-10-26 14:58:52 +02:00
parent da8f119345
commit 22b7288e0e
4 changed files with 18 additions and 7 deletions

3
.gitmodules vendored
View File

@ -62,3 +62,6 @@
path = pack/YouCompleteMe/opt/YouCompleteMe path = pack/YouCompleteMe/opt/YouCompleteMe
url = https://github.com/Valloric/YouCompleteMe url = https://github.com/Valloric/YouCompleteMe
ignore = untracked ignore = untracked
[submodule "pack/asyncrun/opt/asyncrun"]
path = pack/asyncrun/opt/asyncrun
url = https://github.com/skywind3000/asyncrun.vim.git

@ -0,0 +1 @@
Subproject commit ad94d5ef7537049b6c0a3045119ff35061d7bb89

View File

@ -58,15 +58,21 @@ function GetAllMakeCompletions(ArgLead, CmdLine, CursorPos)
return join(s:makegoals + s:makeopts + glob(a:ArgLead.'*', 1, 1), "\n") return join(s:makegoals + s:makeopts + glob(a:ArgLead.'*', 1, 1), "\n")
endfunction endfunction
function MakeOnFinished()
echo "make exit code: " . g:asyncrun_code
endfunction
function s:Make(args) function s:Make(args)
wa
echo a:args echo a:args
execute 'cd '.s:ProjectBuildDir.' | make ' . s:GetMakeOptions(a:args) . ' | cd -' copen
execute 'cd '.s:ProjectSrcDir let g:asyncrun_exit = 'call MakeOnFinished()'
try execute 'AsyncRun make --directory=../build ' . s:GetMakeOptions(a:args)
clist " try
catch /E42/ " list is empty " clist
echo 'no output' " catch /E42/ " list is empty
endtry " echo 'no output'
" endtry
endfunction endfunction
function CopyFirmware(command) function CopyFirmware(command)

View File

@ -268,6 +268,7 @@ let g:Gitv_OpenHorizontal = 1
" ------------------ " ------------------
" packages / plugins " packages / plugins
" ------------------ " ------------------
packadd asyncrun
packadd dirdiff packadd dirdiff
packadd DoxygenToolkit packadd DoxygenToolkit
packadd fugitive packadd fugitive