-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.html
99 lines (99 loc) · 4.16 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title></title>
<style type="text/css">code{white-space: pre;}</style>
<link rel="stylesheet" href="/home/pedro/.vim/bundle/sprint/assets/github.css" type="text/css" />
</head>
<body>
<h1 id="sprint-2.0">Sprint 2.0</h1>
<p>Async file running</p>
<div class="figure">
<img src="doc/pic1.png" alt="Screenshot" />
<p class="caption">Screenshot</p>
</div>
<h2 id="tldr">tl;dr</h2>
<p>Just like any IDE’s run button this plugins just runs your code.</p>
<h2 id="dependencies">Dependencies</h2>
<p>Sprint relies heavily on <span class="citation">@skywind3000</span> <a href="https://github.com/skywind3000/asyncrun.vim">async run</a>, sprint also relies on Vim 8.0’s async functionality. Depending on what language is being used with Sprint you will require a different dependecy check the supported languages area for reference.</p>
<ul>
<li>Async run</li>
<li>Vim 8.0</li>
<li>Language compilers/interpreters</li>
</ul>
<h2 id="what-does-it-do">What does it do?</h2>
<p>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.</p>
<h2 id="supported-languages-and-language-dependencies">Supported languages and language dependencies</h2>
<table>
<thead>
<tr class="header">
<th align="left">Languages</th>
<th align="left">Compiler</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td align="left">C</td>
<td align="left">GCC</td>
</tr>
<tr class="even">
<td align="left">C++</td>
<td align="left">G++</td>
</tr>
<tr class="odd">
<td align="left">Python</td>
<td align="left">python</td>
</tr>
<tr class="even">
<td align="left">Php</td>
<td align="left">php</td>
</tr>
<tr class="odd">
<td align="left">Javascript</td>
<td align="left">node</td>
</tr>
<tr class="even">
<td align="left">Coffee Script</td>
<td align="left">coffee</td>
</tr>
<tr class="odd">
<td align="left">Haskell</td>
<td align="left">ghc</td>
</tr>
<tr class="even">
<td align="left">Latex</td>
<td align="left">pdflatex</td>
</tr>
<tr class="odd">
<td align="left">Markdown</td>
<td align="left">pandoc(pdf)</td>
</tr>
<tr class="even">
<td align="left">README.md</td>
<td align="left">pandoc(github styling)</td>
</tr>
</tbody>
</table>
<h3 id="things-to-consider">Things to consider</h3>
<p>In order to compile the contents of the buffer Sprint must save your files before executing. However after executing the file Sprint will delete the file.(Sprint is for quick testing not for final release builds, makefiles are your friend)</p>
<h2 id="installing">Installing</h2>
<p>Use any package manager of your liking if you have Vim 8.0 and Async run. My recommendation is to use vundle with the following code.</p>
<pre class="viml"><code>"This checks for vim 8.0 or above before installing plugins
if v:version >= 800
Plugin 'skywind3000/asyncrun.vim'
Plugin 'pedsm/sprint'
endif</code></pre>
<h2 id="using">Using</h2>
<p>Sprint is simple just run :Sprint at any file of the supported languages and watch the result.</p>
<h2 id="customizing">Customizing</h2>
<p>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.</p>
<pre class="viml"><code> let g:SprintForceRun = 1</code></pre>
<p>If you want Sprint not to open the quickfix window and you rather open it manually add the folling to your vimrc</p>
<pre class="viml"><code> let g:SprintHidden = 1</code></pre>
<h4 id="to-do">To-do</h4>
<p>Pull requests are helpful and the code base is small - [ ] Add more languages - [x] Global variables for copen - [ ] Global variables for cw - [ ] Global variable for writing the file - [x] Global variable for override running process - [x] Finish the help help file - [ ] Add buffer mode</p>
</body>
</html>