Skip to content

Instantly share code, notes, and snippets.

@tkfm-yamaguchi
Created January 22, 2019 14:49
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 tkfm-yamaguchi/8553efbe415f3b2d520266b68b3e5633 to your computer and use it in GitHub Desktop.
Save tkfm-yamaguchi/8553efbe415f3b2d520266b68b3e5633 to your computer and use it in GitHub Desktop.
Create tab for terminals within js project
function! RunTerms()
-tabnew
terminal ++close ++curwin yarn start
terminal ++close yarn test
" use `term_start` to set 'cwd' option
vertical call term_start('http-server -p 8000 --cors', {'cwd': 'data', 'term_finish': 'close'})
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment