vimdeck 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -3,29 +3,97 @@
3
3
  VIM as a presentation tool
4
4
 
5
5
 
6
+ ## Installation
7
+
8
+ Install the vim plugin [SyntaxRange](https://github.com/vim-scripts/SyntaxRange).
9
+
10
+ ```
11
+ gem install vimdeck
12
+ ```
13
+
14
+
6
15
  ## Usage
7
16
 
8
- 1. Write your slides in a markdown file
17
+ 1. Write your slides in a markdown file (See below for details on _limited_ markdown syntax)
18
+
19
+ 2. Run `vimdeck <file_name.md>` and it will generate a file for each slide and open them in VIM
9
20
 
10
- 2. Run `bin/vimdeck` and it will generate a file for each slide and open them in VIM
11
21
 
12
22
  ## VIM Script
13
23
 
14
24
  Vimdeck will also provide a script file that will set up keybindings for you.
15
25
 
16
- PageUp/Left go backwards
17
- PageDown/Right go forward
26
+ - PageUp/Left go backwards
27
+ - PageDown/Right go forward
28
+
29
+
30
+ ## A Note about VIM
31
+
32
+ This is a tool meant for VIM users. In other words, it is not a VIM plugin
33
+ &mdash; it's a script that converts a plain text document into multiple files.
34
+
35
+ The only hard dependency is [SyntaxRange](https://github.com/vim-scripts/SyntaxRange).
36
+
37
+ Other than that you may need some syntax highlighting plugins to handle the code syntax highlighting.
38
+
39
+
40
+ ## A Note About Markdown
41
+
42
+ Slides are separated by 2 newlines in a row.
43
+
44
+ Example:
45
+
46
+ ```
47
+ # Slide 1
48
+
49
+ - has some
50
+ - really important
51
+ - information
52
+
53
+
54
+ # Slide 2
55
+
56
+ Is less important
57
+ ```
58
+
59
+ Vimdeck does not compile markdown into something else.
60
+ It uses a very small subset of markdown. List of items supported:
61
+
62
+ - h1s
63
+ - h2s
64
+ - images
65
+ - fenced code blocks
66
+
67
+ That's it. The point of Markdown is that it's human-readable. Other stuff like (un)ordered
68
+ lists, block quotes, indented code blocks, etc. will be displayed just as they were written.
69
+
70
+ Fenced code blocks look like this:
71
+
72
+ ```javascript
73
+ this.is = 'code'
74
+ ```
75
+
76
+ # Why Ruby?
77
+
78
+ Additionally, I want to point out that I realize that it's odd to have a VIM-based tool
79
+ and not write it as a VIM script. Ruby was my language of choice only because the ascii art dependencies
80
+ were implemented as ruby gems. Plus, I &hearts; ruby.
81
+
18
82
 
19
83
  ##Screenshots:
20
84
 
85
+
21
86
  Vimdeck converts h1s and h2s into ascii art
22
87
  ![](img/demo1.png)
23
88
 
89
+
24
90
  Lists are displayed as they are written
25
91
  ![](img/demo2.png)
26
92
 
93
+
27
94
  Vimdeck will also augment its vimscript to provide syntax highlighting
28
95
  ![](img/demo3.png)
29
96
 
97
+
30
98
  Images are even converted to ascii art!
31
99
  ![](img/demo4.png)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
data/img/demo1.png CHANGED
Binary file
data/img/demo2.png CHANGED
Binary file
data/img/demo3.png CHANGED
Binary file
data/img/demo4.png CHANGED
Binary file
data/slides.md CHANGED
@@ -8,39 +8,37 @@
8
8
  ![](img/vim.png)
9
9
 
10
10
 
11
- ## Numbered List
11
+ ## NUMBERED LIST
12
12
 
13
13
  1. This is how a numbered list
14
14
  2. Looks in vimdeck
15
15
  3. What do you think?
16
16
 
17
17
 
18
- # Bullets
18
+ # BULLETS
19
19
 
20
20
  • First
21
21
  {~• Second
22
22
  • Third~}
23
23
 
24
24
 
25
- # Bullets
25
+ # BULLETS
26
26
 
27
27
  {~• First~}
28
28
  • Second
29
29
  {~• Third~}
30
30
 
31
31
 
32
- # Bullets
32
+ # BULLETS
33
33
 
34
34
  {~• First
35
35
  • Second~}
36
36
  • Third
37
37
 
38
38
 
39
- #
39
+ ## CODE
40
40
 
41
41
  ```ruby
42
- # VIMDECK DOES CODE!
43
-
44
42
  module Parts
45
43
  class foo
46
44
  def slide
@@ -55,11 +53,9 @@ end
55
53
  ```
56
54
 
57
55
 
58
- #
56
+ ## CODE
59
57
 
60
58
  ```ruby
61
- # VIMDECK DOES CODE!
62
-
63
59
  {~module Parts
64
60
  class foo
65
61
  def slide
@@ -74,11 +70,9 @@ end~}
74
70
  ```
75
71
 
76
72
 
77
- #
73
+ ## CODE
78
74
 
79
75
  ```ruby
80
- # VIMDECK DOES CODE!
81
-
82
76
  {~module Parts
83
77
  class foo
84
78
  def slide
@@ -93,11 +87,9 @@ end~}
93
87
  ```
94
88
 
95
89
 
96
- #
90
+ ## CODE
97
91
 
98
92
  ```ruby
99
- # VIMDECK DOES CODE!
100
-
101
93
  {~module Parts
102
94
  class foo
103
95
  def slide
@@ -112,11 +104,9 @@ end~}
112
104
  ```
113
105
 
114
106
 
115
- #
107
+ ## CODE
116
108
 
117
109
  ```ruby
118
- # VIMDECK DOES CODE!
119
-
120
110
  {~module~} Parts
121
111
  {~class foo
122
112
  def slide
@@ -131,11 +121,9 @@ end~}
131
121
  ```
132
122
 
133
123
 
134
- #
124
+ ## CODE
135
125
 
136
126
  ```ruby
137
- # VIMDECK DOES CODE!
138
-
139
127
  {~module Parts
140
128
  class foo
141
129
  def slide~}
@@ -150,11 +138,9 @@ end~}
150
138
  ```
151
139
 
152
140
 
153
- #
141
+ ## CODE
154
142
 
155
143
  ```ruby
156
- # VIMDECK DOES CODE!
157
-
158
144
  {~module Parts
159
145
  class foo
160
146
  def~} slide
data/vimdeck.gemspec CHANGED
@@ -20,4 +20,6 @@ Gem::Specification.new do |s|
20
20
  s.files = FileList['**/**/*'].exclude /.git|.svn|.DS_Store/
21
21
  s.bindir = 'bin'
22
22
  s.executables = ['vimdeck']
23
+ s.add_runtime_dependency 'artii'
24
+ s.add_runtime_dependency 'asciiart'
23
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vimdeck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,39 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2013-09-18 00:00:00.000000000 Z
13
- dependencies: []
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: artii
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: asciiart
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
14
46
  description: VIM as a presentation tool
15
47
  email: tabenziger@gmail.com
16
48
  executables:
@@ -29,30 +61,9 @@ files:
29
61
  - lib/templates/script.vim.erb
30
62
  - lib/test
31
63
  - lib/vimdeck.rb
32
- - presentation/script.vim
33
- - presentation/slide001.md
34
- - presentation/slide002.md
35
- - presentation/slide003.md
36
- - presentation/slide004.md
37
- - presentation/slide005.md
38
- - presentation/slide006.md
39
- - presentation/slide007.md
40
- - presentation/slide008.md
41
- - presentation/slide009.md
42
- - presentation/slide010.md
43
- - presentation/slide011.md
44
- - presentation/slide012.md
45
- - presentation/slide013.md
46
- - presentation/slide014.md
47
- - presentation/slide015.md
48
- - presentation/slide016.md
49
- - presentation/slide017.md
50
- - presentation/slide018.md
51
- - presentation/slide019.md
52
64
  - README.md
53
65
  - slides.md
54
66
  - VERSION
55
- - vimdeck-0.0.7.gem
56
67
  - vimdeck.gemspec
57
68
  homepage: http://github.com/tybenz/vimdeck
58
69
  licenses:
@@ -1,109 +0,0 @@
1
- noremap <PageUp> :bp<CR>
2
- noremap <Left> :bp<CR>
3
- noremap <PageDown> :bn<CR>
4
- noremap <Right> :bn<CR>
5
-
6
-
7
- b 1
8
-
9
-
10
-
11
- b 2
12
-
13
-
14
-
15
- b 3
16
-
17
-
18
-
19
- b 4
20
-
21
-
22
- call matchadd("Comment", "• Second\\n • Third\\(\\_.*slide 4\\)\\@=")
23
-
24
-
25
- b 5
26
-
27
-
28
- call matchadd("Comment", "• First\\(\\_.*slide 5\\)\\@=")
29
-
30
- call matchadd("Comment", "• Third\\(\\_.*slide 5\\)\\@=")
31
-
32
-
33
- b 6
34
-
35
-
36
- call matchadd("Comment", "• First\\n • Second\\(\\_.*slide 6\\)\\@=")
37
-
38
-
39
- b 7
40
-
41
- 2,14SyntaxInclude ruby
42
-
43
-
44
-
45
- b 8
46
-
47
- 2,14SyntaxInclude ruby
48
-
49
-
50
- call matchadd("Comment", "module Parts\\n class foo\\n def slide\\n \"of a\"\\n end\\n\\n def can\\n highlight = \\(\\_.*slide 8\\)\\@=")
51
-
52
- call matchadd("Comment", "\\n end\\n end\\n end\\(\\_.*slide 8\\)\\@=")
53
-
54
-
55
- b 9
56
-
57
- 2,14SyntaxInclude ruby
58
-
59
-
60
- call matchadd("Comment", "module Parts\\n class foo\\n def slide\\n \"of a\"\\n end\\n\\n def\\(\\_.*slide 9\\)\\@=")
61
-
62
- call matchadd("Comment", "highlight = \"vimdeck\"\\n end\\n end\\n end\\(\\_.*slide 9\\)\\@=")
63
-
64
-
65
- b 10
66
-
67
- 2,14SyntaxInclude ruby
68
-
69
-
70
- call matchadd("Comment", "module Parts\\n class foo\\n def slide\\n \"of a\"\\n end\\n\\n def can\\(\\_.*slide 10\\)\\@=")
71
-
72
- call matchadd("Comment", "= \"vimdeck\"\\n end\\n end\\n end\\(\\_.*slide 10\\)\\@=")
73
-
74
-
75
- b 11
76
-
77
- 2,14SyntaxInclude ruby
78
-
79
-
80
- call matchadd("Comment", "module\\(\\_.*slide 11\\)\\@=")
81
-
82
- call matchadd("Comment", "class foo\\n def slide\\n \"of a\"\\n end\\n\\n def can\\n highlight = \"vimdeck\"\\n end\\n end\\n end\\(\\_.*slide 11\\)\\@=")
83
-
84
-
85
- b 12
86
-
87
- 2,14SyntaxInclude ruby
88
-
89
-
90
- call matchadd("Comment", "module Parts\\n class foo\\n def slide\\(\\_.*slide 12\\)\\@=")
91
-
92
- call matchadd("Comment", "end\\n\\n def can\\n highlight = \"vimdeck\"\\n end\\n end\\n end\\(\\_.*slide 12\\)\\@=")
93
-
94
-
95
- b 13
96
-
97
- 2,14SyntaxInclude ruby
98
-
99
-
100
- call matchadd("Comment", "module Parts\\n class foo\\n def\\(\\_.*slide 13\\)\\@=")
101
-
102
- call matchadd("Comment", "\"of a\"\\n end\\n\\n def can\\n highlight = \"vimdeck\"\\n end\\n end\\n end\\(\\_.*slide 13\\)\\@=")
103
-
104
-
105
- b 14
106
-
107
-
108
-
109
- b 1
@@ -1,92 +0,0 @@
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
- slide 1
@@ -1,105 +0,0 @@
1
- _ ________ ___ ____ ____ ________ _______ __
2
- | | / / _/ |/ / / __ \/ __ \/ ____/ //_/ ___// /
3
- | | / // // /|_/ / / /_/ / / / / / / ,< \__ \/ /
4
- | |/ // // / / / / _, _/ /_/ / /___/ /| |___/ /_/
5
- |___/___/_/ /_/ /_/ |_|\____/\____/_/ |_/____(_)
6
-
7
-
8
- +------------------------------+
9
- | :.. |
10
- | ~===..=+.++==:.+==+======. |
11
- | ~oooooooo==~:..+=oooooooo~ |
12
- | .+oo=oo=::....:=oooooo+.. |
13
- | .=ooooo=.::::+ooooo=++. |
14
- | .=ooooo=:+:+ooooo=+:~+. |
15
- | ..:.=ooo=o==+ooooo=+:.::.... |
16
- |.+::.=oooooooooooo+::.........|
17
- | ..:ooooooooo====:.......:. |
18
- | .ooooooooo+++:......... |
19
- | .=ooooo==~~==.+=++==+=+. |
20
- | .=ooo==~:.++.:=+.==+.==. |
21
- | .=oo=:..:+=:=o=.:=+~=+. |
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
-
100
-
101
-
102
-
103
-
104
-
105
- slide 2
@@ -1,89 +0,0 @@
1
- _ __ __ __ __ _ __
2
- / |/ /_ ____ _ / / ___ _______ ___/ / / / (_)__/ /_
3
- / / // / ' \/ _ \ -_) __/ -_) _ / / /__/ (_-< __/
4
- /_/|_/\_,_/_/_/_/_.__\__/_/ \__/\_,_/ /____/_/___\__/
5
-
6
-
7
- 1. This is how a numbered list
8
- 2. Looks in vimdeck
9
- 3. What do you think?
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
- slide 3