Skip to content

Instantly share code, notes, and snippets.

View Quramy's full-sized avatar
👾

Yosuke Kurami Quramy

👾
View GitHub Profile
function! vim_typings#install(...)
let type_file_list = map(range(1, a:{0}), 'a:{v:val}')
let stdouts = systemlist('typings install '.join(type_file_list, ' ').' --save')
if v:shell_error
let stdouts = systemlist('typings install '.join(type_file_list, ' ').' --ambient --save')
endif
echom join(stdouts, ', ')
endfunction