Created
January 22, 2019 14:49
-
-
Save tkfm-yamaguchi/8553efbe415f3b2d520266b68b3e5633 to your computer and use it in GitHub Desktop.
Create tab for terminals within js project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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