diff --git a/README.md b/README.md index 592ab21..d5c4321 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Sprint relies heavily on @skywind3000 [async run](https://github.com/skywind3000 - Language compilers/interpreters ## What does it do? -Sprint adds a command to vim to allow for asynchronous running of your file, perfect for testing. On compiled formats sprint will compile to the defautl name or use the "sprintFile" name to create a file to run, so make sure no file with this name exists. +Sprint adds a command to vim to allow for asynchronous running of your file, perfect for testing. On compiled formats sprint will compile to the default name or use the "sprintFile" name to create a file to run, so make sure no file with this name exists. ## Supported languages and language dependencies @@ -25,7 +25,7 @@ Sprint adds a command to vim to allow for asynchronous running of your file, per |Python |python | |Php |php | |Javascript |node | -|Coffee Script |coffee | +|Java |javac | |Haskell |ghc | |Latex |pdflatex | |Markdown |pandoc(pdf)| @@ -48,21 +48,23 @@ endif Sprint is simple just run :Sprint at any file of the supported languages and watch the result. ## Customizing -If you want Sprints to override running programs(Ideal for programs that run for a long time you can set the following variables on your vimrc. +If you want Sprints to not override running programs(Ideal for programs that run for a long time you can set the following variables on your vimrc. ``` vimL - let g:SprintForceRun = 1 + let g:SprintForceRun = 0 ``` -If you want Sprint not to open the quickfix window and you rather open it manually add the folling to your vimrc +If you want Sprint not to open the quickfix window and you rather open it manually add the following to your vimrc ``` vimL let g:SprintHidden = 1 ``` +## Known Bugs +- SprintForceRun will stop a running program but not start the following unless used twice. #### To-do Pull requests are helpful and the code base is small - [ ] Add more languages - [x] Global variables for copen - - [ ] Global variables for cw + - [ ] Global variables for cw(Error messaging) - [ ] Global variable for writing the file - [x] Global variable for override running process - [x] Finish the help help file diff --git a/assets/github.css b/assets/github.css index c067719..b9c4c6e 100644 --- a/assets/github.css +++ b/assets/github.css @@ -1,681 +1 @@ -@font-face { - font-family: octicons-link; - src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgA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HyGMF8NgYrIM3JIAGVYYDT+AEjAwuDFpBmA9KMDEwMCh9i/v8H8sH0/4dQc1iAmAkALaUKLgAAAHjaTY9LDsIgEIbtgqHUPpDi3gPoBVyRTmTddOmqTXThEXqrob2gQ1FjwpDvfwCBdmdXC5AVKFu3e5MfNFJ29KTQT48Ob9/lqYwOGZxeUelN2U2R6+cArgtCJpauW7UQBqnFkUsjAY/kOU1cP+DAgvxwn1chZDwUbd6CFimGXwzwF6tPbFIcjEl+vvmM/byA48e6tWrKArm4ZJlCbdsrxksL1AwWn/yBSJKpYbq8AXaaTb8AAHja28jAwOC00ZrBeQNDQOWO//sdBBgYGRiYWYAEELEwMTE4uzo5Zzo5b2BxdnFOcALxNjA6b2ByTswC8jYwg0VlNuoCTWAMqNzMzsoK1rEhNqByEyerg5PMJlYuVueETKcd/89uBpnpvIEVomeHLoMsAAe1Id4AAAAAAAB42oWQT07CQBTGv0JBhagk7HQzKxca2sJCE1hDt4QF+9JOS0nbaaYDCQfwCJ7Au3AHj+LO13FMmm6cl7785vven0kBjHCBhfpYuNa5Ph1c0e2Xu3jEvWG7UdPDLZ4N92nOm+EBXuAbHmIMSRMs+4aUEd4Nd3CHD8NdvOLTsA2GL8M9PODbcL+hD7C1xoaHeLJSEao0FEW14ckxC+TU8TxvsY6X0eLPmRhry2WVioLpkrbp84LLQPGI7c6sOiUzpWIWS5GzlSgUzzLBSikOPFTOXqly7rqx0Z1Q5BAIoZBSFihQYQOOBEdkCOgXTOHA07HAGjGWiIjaPZNW13/+lm6S9FT7rLHFJ6fQbkATOG1j2OFMucKJJsxIVfQORl+9Jyda6Sl1dUYhSCm1dyClfoeDve4qMYdLEbfqHf3O/AdDumsjAAB42mNgYoAAZQYjBmyAGYQZmdhL8zLdDEydARfoAqIAAAABAAMABwAKABMAB///AA8AAQAAAAAAAAAAAAAAAAABAAAAAA==) format('woff'); -} - -body { - -ms-text-size-adjust: 100%; - -webkit-text-size-adjust: 100%; - line-height: 1.5; - color: #333; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - font-size: 16px; - line-height: 1.5; - word-wrap: break-word; -} - -body .pl-c { - color: #969896; -} - -body .pl-c1, -body .pl-s .pl-v { - color: #0086b3; -} - -body .pl-e, -body .pl-en { - color: #795da3; -} - -body .pl-smi, -body .pl-s .pl-s1 { - color: #333; -} - -body .pl-ent { - color: #63a35c; -} - -body .pl-k { - color: #a71d5d; -} - -body .pl-s, -body .pl-pds, -body .pl-s .pl-pse .pl-s1, -body .pl-sr, -body .pl-sr .pl-cce, -body .pl-sr .pl-sre, -body .pl-sr .pl-sra { - color: #183691; -} - -body .pl-v { - color: #ed6a43; -} - -body .pl-id { - color: #b52a1d; -} - -body .pl-ii { - color: #f8f8f8; - background-color: #b52a1d; -} - -body .pl-sr .pl-cce { - font-weight: bold; - color: #63a35c; -} - -body .pl-ml { - color: #693a17; -} - -body .pl-mh, -body .pl-mh .pl-en, -body .pl-ms { - font-weight: bold; - color: #1d3e81; -} - -body .pl-mq { - color: #008080; -} - -body .pl-mi { - font-style: italic; - color: #333; -} - -body .pl-mb { - font-weight: bold; - color: #333; -} - -body .pl-md { - color: #bd2c00; - background-color: #ffecec; -} - -body .pl-mi1 { - color: #55a532; - background-color: #eaffea; -} - -body .pl-mdr { - font-weight: bold; - color: #795da3; -} - -body .pl-mo { - color: #1d3e81; -} - -body .octicon { - display: inline-block; - vertical-align: text-top; - fill: currentColor; -} - -body a { - background-color: transparent; - -webkit-text-decoration-skip: objects; -} - -body a:active, -body a:hover { - outline-width: 0; -} - -body strong { - font-weight: inherit; -} - -body strong { - font-weight: bolder; -} - -body h1 { - font-size: 2em; - margin: 0.67em 0; -} - -body img { - border-style: none; -} - -body svg:not(:root) { - overflow: hidden; -} - -body code, -body kbd, -body pre { - font-family: monospace, monospace; - font-size: 1em; -} - -body hr { - box-sizing: content-box; - height: 0; - overflow: visible; -} - -body input { - font: inherit; - margin: 0; -} - -body input { - overflow: visible; -} - -body [type="checkbox"] { - box-sizing: border-box; - padding: 0; -} - -body * { - box-sizing: border-box; -} - -body input { - font-family: inherit; - font-size: inherit; - line-height: inherit; -} - -body a { - color: #4078c0; - text-decoration: none; -} - -body a:hover, -body a:active { - text-decoration: underline; -} - -body strong { - font-weight: 600; -} - -body hr { - height: 0; - margin: 15px 0; - overflow: hidden; - background: transparent; - border: 0; - border-bottom: 1px solid #ddd; -} - -body hr::before { - display: table; - content: ""; -} - -body hr::after { - display: table; - clear: both; - content: ""; -} - -body table { - border-spacing: 0; - border-collapse: collapse; -} - -body td, -body th { - padding: 0; -} - -body h1, -body h2, -body h3, -body h4, -body h5, -body h6 { - margin-top: 0; - margin-bottom: 0; -} - -body h1 { - font-size: 32px; - font-weight: 600; -} - -body h2 { - font-size: 24px; - font-weight: 600; -} - -body h3 { - font-size: 20px; - font-weight: 600; -} - -body h4 { - font-size: 16px; - font-weight: 600; -} - -body h5 { - font-size: 14px; - font-weight: 600; -} - -body h6 { - font-size: 12px; - font-weight: 600; -} - -body p { - margin-top: 0; - margin-bottom: 10px; -} - -body blockquote { - margin: 0; -} - -body ul, -body ol { - padding-left: 0; - margin-top: 0; - margin-bottom: 0; -} - -body ol ol, -body ul ol { - list-style-type: lower-roman; -} - -body ul ul ol, -body ul ol ol, -body ol ul ol, -body ol ol ol { - list-style-type: lower-alpha; -} - -body dd { - margin-left: 0; -} - -body code { - font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; - font-size: 12px; -} - -body pre { - margin-top: 0; - margin-bottom: 0; - font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; -} - -body .octicon { - vertical-align: text-bottom; -} - -body input { - -webkit-font-feature-settings: "liga" 0; - font-feature-settings: "liga" 0; -} - -body::before { - display: table; - content: ""; -} - -body::after { - display: table; - clear: both; - content: ""; -} - -body>*:first-child { - margin-top: 0 !important; -} - -body>*:last-child { - margin-bottom: 0 !important; -} - -body a:not([href]) { - color: inherit; - text-decoration: none; -} - -body .anchor { - float: left; - padding-right: 4px; - margin-left: -20px; - line-height: 1; -} - -body .anchor:focus { - outline: none; -} - -body p, -body blockquote, -body ul, -body ol, -body dl, -body table, -body pre { - margin-top: 0; - margin-bottom: 16px; -} - -body hr { - height: 0.25em; - padding: 0; - margin: 24px 0; - background-color: #e7e7e7; - border: 0; -} - -body blockquote { - padding: 0 1em; - color: #777; - border-left: 0.25em solid #ddd; -} - -body blockquote>:first-child { - margin-top: 0; -} - -body blockquote>:last-child { - margin-bottom: 0; -} - -body kbd { - display: inline-block; - padding: 3px 5px; - font-size: 11px; - line-height: 10px; - color: #555; - vertical-align: middle; - background-color: #fcfcfc; - border: solid 1px #ccc; - border-bottom-color: #bbb; - border-radius: 3px; - box-shadow: inset 0 -1px 0 #bbb; -} - -body h1, -body h2, -body h3, -body h4, -body h5, -body h6 { - margin-top: 24px; - margin-bottom: 16px; - font-weight: 600; - line-height: 1.25; -} - -body h1 .octicon-link, -body h2 .octicon-link, -body h3 .octicon-link, -body h4 .octicon-link, -body h5 .octicon-link, -body h6 .octicon-link { - color: #000; - vertical-align: middle; - visibility: hidden; -} - -body h1:hover .anchor, -body h2:hover .anchor, -body h3:hover .anchor, -body h4:hover .anchor, -body h5:hover .anchor, -body h6:hover .anchor { - text-decoration: none; -} - -body h1:hover .anchor .octicon-link, -body h2:hover .anchor .octicon-link, -body h3:hover .anchor .octicon-link, -body h4:hover .anchor .octicon-link, -body h5:hover .anchor .octicon-link, -body h6:hover .anchor .octicon-link { - visibility: visible; -} - -body h1 { - padding-bottom: 0.3em; - font-size: 2em; - border-bottom: 1px solid #eee; -} - -body h2 { - padding-bottom: 0.3em; - font-size: 1.5em; - border-bottom: 1px solid #eee; -} - -body h3 { - font-size: 1.25em; -} - -body h4 { - font-size: 1em; -} - -body h5 { - font-size: 0.875em; -} - -body h6 { - font-size: 0.85em; - color: #777; -} - -body ul, -body ol { - padding-left: 2em; -} - -body ul ul, -body ul ol, -body ol ol, -body ol ul { - margin-top: 0; - margin-bottom: 0; -} - -body li>p { - margin-top: 16px; -} - -body li+li { - margin-top: 0.25em; -} - -body dl { - padding: 0; -} - -body dl dt { - padding: 0; - margin-top: 16px; - font-size: 1em; - font-style: italic; - font-weight: bold; -} - -body dl dd { - padding: 0 16px; - margin-bottom: 16px; -} - -body table { - display: block; - width: 100%; - overflow: auto; -} - -body table th { - font-weight: bold; -} - -body table th, -body table td { - padding: 6px 13px; - border: 1px solid #ddd; -} - -body table tr { - background-color: #fff; - border-top: 1px solid #ccc; -} - -body table tr:nth-child(2n) { - background-color: #f8f8f8; -} - -body img { - max-width: 100%; - box-sizing: content-box; - background-color: #fff; -} - -body code { - padding: 0; - padding-top: 0.2em; - padding-bottom: 0.2em; - margin: 0; - font-size: 85%; - background-color: rgba(0,0,0,0.04); - border-radius: 3px; -} - -body code::before, -body code::after { - letter-spacing: -0.2em; - content: "\00a0"; -} - -body pre { - word-wrap: normal; -} - -body pre>code { - padding: 0; - margin: 0; - font-size: 100%; - word-break: normal; - white-space: pre; - background: transparent; - border: 0; -} - -body .highlight { - margin-bottom: 16px; -} - -body .highlight pre { - margin-bottom: 0; - word-break: normal; -} - -body .highlight pre, -body pre { - padding: 16px; - overflow: auto; - font-size: 85%; - line-height: 1.45; - background-color: #f7f7f7; - border-radius: 3px; -} - -body pre code { - display: inline; - max-width: auto; - padding: 0; - margin: 0; - overflow: visible; - line-height: inherit; - word-wrap: normal; - background-color: transparent; - border: 0; -} - -body pre code::before, -body pre code::after { - content: normal; -} - -body .pl-0 { - padding-left: 0 !important; -} - -body .pl-1 { - padding-left: 3px !important; -} - -body .pl-2 { - padding-left: 6px !important; -} - -body .pl-3 { - padding-left: 12px !important; -} - -body .pl-4 { - padding-left: 24px !important; -} - -body .pl-5 { - padding-left: 36px !important; -} - -body .pl-6 { - padding-left: 48px !important; -} - -body .full-commit .btn-outline:not(:disabled):hover { - color: #4078c0; - border: 1px solid #4078c0; -} - -body kbd { - display: inline-block; - padding: 3px 5px; - font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace; - line-height: 10px; - color: #555; - vertical-align: middle; - background-color: #fcfcfc; - border: solid 1px #ccc; - border-bottom-color: #bbb; - border-radius: 3px; - box-shadow: inset 0 -1px 0 #bbb; -} - -body :checked+.radio-label { - position: relative; - z-index: 1; - border-color: #4078c0; -} - -body .task-list-item { - list-style-type: none; -} - -body .task-list-item+.task-list-item { - margin-top: 3px; -} - -body .task-list-item input { - margin: 0 0.2em 0.25em -1.6em; - vertical-align: middle; -} - -body hr { - border-bottom-color: #eee; -} +body hr,body img{box-sizing:content-box}body hr,body svg:not(:root){overflow:hidden}@font-face{font-family:octicons-link;src:url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32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ph1c0e2Xu3jEvWG7UdPDLZ4N92nOm+EBXuAbHmIMSRMs+4aUEd4Nd3CHD8NdvOLTsA2GL8M9PODbcL+hD7C1xoaHeLJSEao0FEW14ckxC+TU8TxvsY6X0eLPmRhry2WVioLpkrbp84LLQPGI7c6sOiUzpWIWS5GzlSgUzzLBSikOPFTOXqly7rqx0Z1Q5BAIoZBSFihQYQOOBEdkCOgXTOHA07HAGjGWiIjaPZNW13/+lm6S9FT7rLHFJ6fQbkATOG1j2OFMucKJJsxIVfQORl+9Jyda6Sl1dUYhSCm1dyClfoeDve4qMYdLEbfqHf3O/AdDumsjAAB42mNgYoAAZQYjBmyAGYQZmdhL8zLdDEydARfoAqIAAAABAAMABwAKABMAB///AA8AAQAAAAAAAAAAAAAAAAABAAAAAA==) format('woff')}body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;color:#333;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:16px;line-height:1.5;word-wrap:break-word}body .pl-c{color:#969896}body .pl-c1,body .pl-s .pl-v{color:#0086b3}body .pl-e,body .pl-en{color:#795da3}body .pl-s .pl-s1,body .pl-smi{color:#333}body .pl-ent{color:#63a35c}body .pl-k{color:#a71d5d}body .pl-pds,body .pl-s,body .pl-s .pl-pse .pl-s1,body .pl-sr,body .pl-sr .pl-cce,body .pl-sr .pl-sra,body .pl-sr .pl-sre{color:#183691}body .pl-v{color:#ed6a43}body .pl-id{color:#b52a1d}body .pl-ii{color:#f8f8f8;background-color:#b52a1d}body .pl-sr .pl-cce{font-weight:700;color:#63a35c}body .pl-ml{color:#693a17}body .pl-mh,body .pl-mh .pl-en,body .pl-ms{font-weight:700;color:#1d3e81}body .pl-mq{color:teal}body .pl-mi{font-style:italic;color:#333}body .pl-mb{font-weight:700;color:#333}body .pl-md{color:#bd2c00;background-color:#ffecec}body .pl-mi1{color:#55a532;background-color:#eaffea}body .pl-mdr{font-weight:700;color:#795da3}body .pl-mo{color:#1d3e81}body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}body hr::after,body hr::before,body::after,body::before{display:table;content:""}body a{background-color:transparent;-webkit-text-decoration-skip:objects;color:#4078c0;text-decoration:none}body a:active,body a:hover{outline-width:0;text-decoration:underline}body a:not([href]),body h1:hover .anchor,body h2:hover .anchor,body h3:hover .anchor,body h4:hover .anchor,body h5:hover .anchor,body h6:hover .anchor{text-decoration:none}body h1{margin:.67em 0}body img{border-style:none;max-width:100%;background-color:#fff}body h1,body h2{padding-bottom:.3em;border-bottom:1px solid #eee}body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}body [type=checkbox]{box-sizing:border-box;padding:0}body *{box-sizing:border-box}body strong{font-weight:600}body hr::after,body::after{clear:both}body table{border-spacing:0;border-collapse:collapse;display:block;width:100%;overflow:auto}body td,body th{padding:0}body blockquote{margin:0}body ol ol,body ul ol{list-style-type:lower-roman}body ol ol ol,body ol ul ol,body ul ol ol,body ul ul ol{list-style-type:lower-alpha}body dd{margin-left:0}body code{font-family:Consolas,"Liberation Mono",Menlo,Courier,monospace}body pre{font:12px Consolas,"Liberation Mono",Menlo,Courier,monospace;word-wrap:normal}body input{-webkit-font-feature-settings:"liga" 0;font-feature-settings:"liga" 0}body>:first-child{margin-top:0!important}body>:last-child{margin-bottom:0!important}body a:not([href]){color:inherit}body .anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}body dl,body hr{padding:0}body .anchor:focus{outline:0}body blockquote,body dl,body ol,body p,body pre,body table,body ul{margin-top:0;margin-bottom:16px}body hr{background:#e7e7e7;height:.25em;margin:24px 0;border:0}body blockquote{padding:0 1em;color:#777;border-left:.25em solid #ddd}body blockquote>:first-child{margin-top:0}body blockquote>:last-child{margin-bottom:0}body h1,body h2,body h3,body h4,body h5,body h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}body dl dt,body table th{font-weight:700}body h1 .octicon-link,body h2 .octicon-link,body h3 .octicon-link,body h4 .octicon-link,body h5 .octicon-link,body h6 .octicon-link{color:#000;vertical-align:middle;visibility:hidden}body h1:hover .anchor .octicon-link,body h2:hover .anchor .octicon-link,body h3:hover .anchor .octicon-link,body h4:hover .anchor .octicon-link,body h5:hover .anchor .octicon-link,body h6:hover .anchor .octicon-link{visibility:visible}body h1{font-size:2em}body h2{font-size:1.5em}body h3{font-size:1.25em}body h4{font-size:1em}body h5{font-size:.875em}body h6{font-size:.85em;color:#777}body ol,body ul{padding-left:2em}body ol ol,body ol ul,body ul ol,body ul ul{margin-top:0;margin-bottom:0}body li>p{margin-top:16px}body li+li{margin-top:.25em}body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic}body dl dd{padding:0 16px;margin-bottom:16px}body table td,body table th{padding:6px 13px;border:1px solid #ddd}body table tr{background-color:#fff;border-top:1px solid #ccc}body table tr:nth-child(2n){background-color:#f8f8f8}body code{padding:.2em 0;margin:0;font-size:85%;background-color:rgba(0,0,0,.04);border-radius:3px}body code::after,body code::before{letter-spacing:-.2em;content:"\00a0"}body pre>code{padding:0;margin:0;font-size:100%;word-break:normal;white-space:pre;background:0 0;border:0}body .highlight{margin-bottom:16px}body .highlight pre{margin-bottom:0;word-break:normal}body .highlight pre,body pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;background-color:#f7f7f7;border-radius:3px}body pre code{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}body pre code::after,body pre code::before{content:normal}body .pl-0{padding-left:0!important}body .pl-1{padding-left:3px!important}body .pl-2{padding-left:6px!important}body .pl-3{padding-left:12px!important}body .pl-4{padding-left:24px!important}body .pl-5{padding-left:36px!important}body .pl-6{padding-left:48px!important}body .full-commit .btn-outline:not(:disabled):hover{color:#4078c0;border:1px solid #4078c0}body kbd{display:inline-block;padding:3px 5px;font:11px Consolas,"Liberation Mono",Menlo,Courier,monospace;line-height:10px;color:#555;vertical-align:middle;background-color:#fcfcfc;border:1px solid #ccc;border-bottom-color:#bbb;border-radius:3px;box-shadow:inset 0 -1px 0 #bbb}body :checked+.radio-label{position:relative;z-index:1;border-color:#4078c0}body .task-list-item{list-style-type:none}body .task-list-item+.task-list-item{margin-top:3px}body .task-list-item input{margin:0 .2em .25em -1.6em;vertical-align:middle}body hr{border-bottom-color:#eee} \ No newline at end of file diff --git a/doc/sprint.txt b/doc/sprint.txt index 3e6effe..abc2e7e 100644 --- a/doc/sprint.txt +++ b/doc/sprint.txt @@ -17,7 +17,7 @@ CONTENTS *sprint-contents* =============================================================================== INTRO *sprint-intro* -Sprint adds a command to vim to allow for asynchronus running of your file, perfect for testing. On compiled formats sprint will compile to the defautl name or use the "sprintFile" name to create a file to run, so make sure no file with this name exists. +Sprint adds a command to vim to allow for asynchronus running of your file, perfect for testing. On compiled formats sprint will compile to the default name or use the "sprintFile" name to create a file to run, so make sure no file with this name exists. =============================================================================== COMMANDS *sprint-functions* @@ -39,8 +39,8 @@ Overview:~ =============================================================================== CUSTOMIZATION *sprint-customization* -set g:SprintForceRun = 1 -Forces Sprint to run regardlesss of other runnning async jobs +set g:SprintForceRun = 0 +Forces Sprint to only run if the previous job was completed set g:SprintHidden = 1 Sprint hidden means quickfix will not show while the program runs but it can @@ -56,9 +56,12 @@ Sprint currently supports -Python -Php -Javascript - -CoffeeScript + -CoffeeScript(Currently removed due to bug) + -Java(Will compile and run the Main.java file) -Haskell -Markdown + -README.md files will compile into github html + -Other files will compile into Latex If you want another language added just submit an issue or make a pull request. diff --git a/plugin/sprint.vim b/plugin/sprint.vim index e1311e5..4c67c85 100644 --- a/plugin/sprint.vim +++ b/plugin/sprint.vim @@ -5,14 +5,14 @@ " Does not open the quickfix window while running, this can be opened with the default command copen " let g:SprintHidden = 1 " Sprint function -" let g:SprintForceRun = 0 +let g:SprintForceRun = 1 function! Sprint() + w if exists("g:SprintForceRun") if g:SprintForceRun - AsyncStop + AsyncStop! endif endif - w if (&ft=='c') AsyncRun echo "Running C compiler"; gcc % ; ./a.out endif @@ -28,10 +28,13 @@ function! Sprint() if (&ft=='javascript') AsyncRun echo "Running Node"; node % endif - if (&ft=='coffee') - AsyncRun echo "Running Coffee"; coffee % + if (&ft=='java') + AsyncRun echo "Running Javac"; javac Main.java; java Main; endif - if (&ft=='haskell') + " if (&ft=='coffee') + " AsyncRun echo "Running Coffee"; coffee % + " endif + if (&ft=='haskell' || &ft=='lhaskell') AsyncRun echo "Running Ghc"; ghc %; ./%< ; endif if (&ft=='tex')