Skip to content

Instantly share code, notes, and snippets.

@Quramy
Forked from mhartington/typings#install.vim
Last active April 29, 2016 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Quramy/fe8de372c9b6534ee12b80d7df258e82 to your computer and use it in GitHub Desktop.
Save Quramy/fe8de372c9b6534ee12b80d7df258e82 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment