1
0
mirror of https://github.com/amix/vimrc synced 2025-08-04 12:25:00 +08:00

added easymotion

This commit is contained in:
Caleb Taylor
2019-08-06 17:20:48 -07:00
parent b7a7348736
commit d1be1a7aab
60 changed files with 13052 additions and 0 deletions

View File

@ -0,0 +1,12 @@
function! vital#of(name) abort
let files = globpath(&runtimepath, 'autoload/vital/' . a:name . '.vital', 1)
let file = split(files, "\n")
if empty(file)
throw 'vital: version file not found: ' . a:name
endif
let ver = readfile(file[0], 'b')
if empty(ver)
throw 'vital: invalid version file: ' . a:name
endif
return vital#_{substitute(ver[0], '\W', '', 'g')}#new()
endfunction