Some checks failed
		
		
	
	Detach Plugins / check (FlyGrep.vim) (push) Has been cancelled
				
			Detach Plugins / check (GitHub.vim) (push) Has been cancelled
				
			Detach Plugins / check (JavaUnit.vim) (push) Has been cancelled
				
			Detach Plugins / check (SourceCounter.vim) (push) Has been cancelled
				
			Detach Plugins / check (cpicker.nvim) (push) Has been cancelled
				
			Detach Plugins / check (dein-ui.vim) (push) Has been cancelled
				
			Detach Plugins / check (git.vim) (push) Has been cancelled
				
			Detach Plugins / check (iedit.vim) (push) Has been cancelled
				
			Detach Plugins / check (scrollbar.vim) (push) Has been cancelled
				
			Detach Plugins / check (vim-chat) (push) Has been cancelled
				
			Detach Plugins / check (vim-cheat) (push) Has been cancelled
				
			Detach Plugins / check (vim-todo) (push) Has been cancelled
				
			Detach Plugins / check (xmake.vim) (push) Has been cancelled
				
			test / Linux (nvim, nightly) (push) Has been cancelled
				
			test / Linux (nvim, v0.3.8) (push) Has been cancelled
				
			test / Linux (nvim, v0.4.0) (push) Has been cancelled
				
			test / Linux (nvim, v0.4.2) (push) Has been cancelled
				
			test / Linux (nvim, v0.4.3) (push) Has been cancelled
				
			test / Linux (nvim, v0.4.4) (push) Has been cancelled
				
			test / Linux (nvim, v0.5.0) (push) Has been cancelled
				
			test / Linux (nvim, v0.5.1) (push) Has been cancelled
				
			test / Linux (nvim, v0.6.0) (push) Has been cancelled
				
			test / Linux (nvim, v0.6.1) (push) Has been cancelled
				
			test / Linux (nvim, v0.7.0) (push) Has been cancelled
				
			test / Linux (nvim, v0.7.2) (push) Has been cancelled
				
			test / Linux (nvim, v0.8.0) (push) Has been cancelled
				
			test / Linux (nvim, v0.8.1) (push) Has been cancelled
				
			test / Linux (nvim, v0.8.2) (push) Has been cancelled
				
			test / Linux (nvim, v0.8.3) (push) Has been cancelled
				
			test / Linux (nvim, v0.9.0) (push) Has been cancelled
				
			test / Linux (nvim, v0.9.1) (push) Has been cancelled
				
			test / Linux (true, vim, v7.4.052) (push) Has been cancelled
				
			test / Linux (true, vim, v7.4.1689) (push) Has been cancelled
				
			test / Linux (true, vim, v7.4.629) (push) Has been cancelled
				
			test / Linux (true, vim, v8.0.0027) (push) Has been cancelled
				
			test / Linux (true, vim, v8.0.0183) (push) Has been cancelled
				
			test / Linux (vim, nightly) (push) Has been cancelled
				
			test / Linux (vim, v8.0.0184) (push) Has been cancelled
				
			test / Linux (vim, v8.0.1453) (push) Has been cancelled
				
			test / Linux (vim, v8.1.2269) (push) Has been cancelled
				
			test / Linux (vim, v8.2.2434) (push) Has been cancelled
				
			test / Linux (vim, v8.2.3995) (push) Has been cancelled
				
			test / Windows (nvim, nightly) (push) Has been cancelled
				
			test / Windows (nvim, v0.3.8) (push) Has been cancelled
				
			test / Windows (nvim, v0.4.2) (push) Has been cancelled
				
			test / Windows (nvim, v0.4.3) (push) Has been cancelled
				
			test / Windows (nvim, v0.4.4) (push) Has been cancelled
				
			test / Windows (nvim, v0.5.0) (push) Has been cancelled
				
			test / Windows (nvim, v0.5.1) (push) Has been cancelled
				
			test / Windows (nvim, v0.6.0) (push) Has been cancelled
				
			test / Windows (nvim, v0.6.1) (push) Has been cancelled
				
			test / Windows (nvim, v0.7.0) (push) Has been cancelled
				
			test / Windows (nvim, v0.7.2) (push) Has been cancelled
				
			test / Windows (nvim, v0.8.0) (push) Has been cancelled
				
			test / Windows (nvim, v0.8.1) (push) Has been cancelled
				
			test / Windows (nvim, v0.8.2) (push) Has been cancelled
				
			test / Windows (nvim, v0.8.3) (push) Has been cancelled
				
			test / Windows (nvim, v0.9.0) (push) Has been cancelled
				
			test / Windows (nvim, v0.9.1) (push) Has been cancelled
				
			test / Windows (vim, nightly) (push) Has been cancelled
				
			test / Windows (vim, v7.4.1185) (push) Has been cancelled
				
			test / Windows (vim, v7.4.1689) (push) Has been cancelled
				
			test / Windows (vim, v8.0.0027) (push) Has been cancelled
				
			test / Windows (vim, v8.0.1453) (push) Has been cancelled
				
			test / Windows (vim, v8.1.2269) (push) Has been cancelled
				
			test / Windows (vim, v8.2.2434) (push) Has been cancelled
				
			test / Windows (vim, v8.2.3995) (push) Has been cancelled
				
			docker / docker (push) Has been cancelled
				
			mirror / check (coding) (push) Has been cancelled
				
			mirror / check (gitee) (push) Has been cancelled
				
			mirror / check (gitlab) (push) Has been cancelled
				
			
		
			
				
	
	
		
			120 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			VimL
		
	
	
	
	
	
			
		
		
	
	
			120 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			VimL
		
	
	
	
	
	
" ___vital___
 | 
						|
" NOTE: lines between '" ___vital___' is generated by :Vitalize.
 | 
						|
" Do not mofidify the code nor insert new lines before '" ___vital___'
 | 
						|
if v:version > 703 || v:version == 703 && has('patch1170')
 | 
						|
  function! vital#_easymotion#Over#Signals#import() abort
 | 
						|
    return map({'_vital_depends': '', 'call': '', 'make': '', '_vital_loaded': ''},  'function("s:" . v:key)')
 | 
						|
  endfunction
 | 
						|
else
 | 
						|
  function! s:_SID() abort
 | 
						|
    return matchstr(expand('<sfile>'), '<SNR>\zs\d\+\ze__SID$')
 | 
						|
  endfunction
 | 
						|
  execute join(['function! vital#_easymotion#Over#Signals#import() abort', printf("return map({'_vital_depends': '', 'call': '', 'make': '', '_vital_loaded': ''}, \"function('<SNR>%s_' . v:key)\")", s:_SID()), 'endfunction'], "\n")
 | 
						|
  delfunction s:_SID
 | 
						|
endif
 | 
						|
" ___vital___
 | 
						|
scriptencoding utf-8
 | 
						|
let s:save_cpo = &cpo
 | 
						|
set cpo&vim
 | 
						|
 | 
						|
 | 
						|
function! s:_vital_loaded(V)
 | 
						|
	let s:V = a:V
 | 
						|
	let s:L = s:V.import("Data.List")
 | 
						|
endfunction
 | 
						|
 | 
						|
 | 
						|
function! s:_vital_depends()
 | 
						|
	return ["Data.List"]
 | 
						|
endfunction
 | 
						|
 | 
						|
 | 
						|
let s:base = {
 | 
						|
\	"variables" : {
 | 
						|
\		"slots" : [],
 | 
						|
\		"counter" : 0,
 | 
						|
\	}
 | 
						|
\}
 | 
						|
 | 
						|
 | 
						|
function! s:base.connect(slot)
 | 
						|
	let self.variables.counter += 1
 | 
						|
	let slot = { "id" : self.variables.counter, "slot" : a:slot }
 | 
						|
	call add(self.variables.slots, slot)
 | 
						|
	return slot
 | 
						|
endfunction
 | 
						|
 | 
						|
 | 
						|
function! s:base.disconnect(slot)
 | 
						|
	if empty(a:slot)
 | 
						|
		return -1
 | 
						|
	endif
 | 
						|
	for i in range(len(self.variables.slots))
 | 
						|
		if self.variables.slots[i].id == a:slot.id
 | 
						|
			unlet self.variables.slots[i]
 | 
						|
			return
 | 
						|
		endif
 | 
						|
	endfor
 | 
						|
	return -1
 | 
						|
endfunction
 | 
						|
 | 
						|
 | 
						|
function! s:base.disconnect_by(expr)
 | 
						|
	return self.disconnect(self.find_first_by(a:expr))
 | 
						|
endfunction
 | 
						|
 | 
						|
 | 
						|
function! s:call(list, func, ...)
 | 
						|
	let args = get(a:, 1, [])
 | 
						|
	let def = get(a:, 2, 0)
 | 
						|
	return map(copy(a:list), "has_key(v:val, a:func) ? call(v:val.".a:func.", args, v:val) : def")
 | 
						|
endfunction
 | 
						|
 | 
						|
function! s:base.call(func, ...)
 | 
						|
	return call("s:call", [self.slots(), a:func] + a:000)
 | 
						|
endfunction
 | 
						|
 | 
						|
 | 
						|
function! s:base.find_by(expr)
 | 
						|
	return filter(copy(self.variables.slots), a:expr)
 | 
						|
endfunction
 | 
						|
 | 
						|
 | 
						|
function! s:base.find_first_by(expr)
 | 
						|
	return get(self.find_by(a:expr), 0, {})
 | 
						|
endfunction
 | 
						|
 | 
						|
 | 
						|
function! s:base.sort_by(expr)
 | 
						|
	let self.variables.slots = s:L.sort_by(self.variables.slots, a:expr)
 | 
						|
endfunction
 | 
						|
 | 
						|
 | 
						|
function! s:base.get_slot(val)
 | 
						|
	return a:val.slot
 | 
						|
endfunction
 | 
						|
 | 
						|
 | 
						|
function! s:base.slots()
 | 
						|
	return map(copy(self.variables.slots), "self.get_slot(v:val)")
 | 
						|
endfunction
 | 
						|
 | 
						|
 | 
						|
" function! s:base.dict()
 | 
						|
" 	let result = {}
 | 
						|
" 	for _ in self.variables.slots
 | 
						|
" 		let result[_.id] = _.value
 | 
						|
" 	endfor
 | 
						|
" 	return result
 | 
						|
" endfunction
 | 
						|
 | 
						|
 | 
						|
function! s:make()
 | 
						|
	let result = deepcopy(s:base)
 | 
						|
	return result
 | 
						|
endfunction
 | 
						|
 | 
						|
 | 
						|
let &cpo = s:save_cpo
 | 
						|
unlet s:save_cpo
 |