+ asyncrun
This commit is contained in:
parent
da8f119345
commit
22b7288e0e
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -62,3 +62,6 @@
|
||||
path = pack/YouCompleteMe/opt/YouCompleteMe
|
||||
url = https://github.com/Valloric/YouCompleteMe
|
||||
ignore = untracked
|
||||
[submodule "pack/asyncrun/opt/asyncrun"]
|
||||
path = pack/asyncrun/opt/asyncrun
|
||||
url = https://github.com/skywind3000/asyncrun.vim.git
|
||||
|
1
pack/asyncrun/opt/asyncrun
Submodule
1
pack/asyncrun/opt/asyncrun
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit ad94d5ef7537049b6c0a3045119ff35061d7bb89
|
@ -58,15 +58,21 @@ function GetAllMakeCompletions(ArgLead, CmdLine, CursorPos)
|
||||
return join(s:makegoals + s:makeopts + glob(a:ArgLead.'*', 1, 1), "\n")
|
||||
endfunction
|
||||
|
||||
function MakeOnFinished()
|
||||
echo "make exit code: " . g:asyncrun_code
|
||||
endfunction
|
||||
|
||||
function s:Make(args)
|
||||
wa
|
||||
echo a:args
|
||||
execute 'cd '.s:ProjectBuildDir.' | make ' . s:GetMakeOptions(a:args) . ' | cd -'
|
||||
execute 'cd '.s:ProjectSrcDir
|
||||
try
|
||||
clist
|
||||
catch /E42/ " list is empty
|
||||
echo 'no output'
|
||||
endtry
|
||||
copen
|
||||
let g:asyncrun_exit = 'call MakeOnFinished()'
|
||||
execute 'AsyncRun make --directory=../build ' . s:GetMakeOptions(a:args)
|
||||
" try
|
||||
" clist
|
||||
" catch /E42/ " list is empty
|
||||
" echo 'no output'
|
||||
" endtry
|
||||
endfunction
|
||||
|
||||
function CopyFirmware(command)
|
||||
|
@ -268,6 +268,7 @@ let g:Gitv_OpenHorizontal = 1
|
||||
" ------------------
|
||||
" packages / plugins
|
||||
" ------------------
|
||||
packadd asyncrun
|
||||
packadd dirdiff
|
||||
packadd DoxygenToolkit
|
||||
packadd fugitive
|
||||
|
Loading…
x
Reference in New Issue
Block a user