vimdeck 0.2.3 → 0.2.4
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.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/lib/templates/script.vim.erb +14 -14
- data/lib/vimdeck.rb +1 -1
- data/presentation/script.vim +0 -116
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2NhZjA2ZjgzNzZmNzQ0M2ZkMWI5Y2U0NWRkOTU1ZDkxMmVjZjc3Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGE1NTNmMzc5MjhmNzAzZDNjNTUzZTc3NzA1N2IyOGU1OWE0Y2E5Mg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDE2M2EyMDAxNmNlNjFjZTYyZGNhNTVlN2MxNDAwNzRjNWEzZTQ5ZDZlNjRk
|
10
|
+
MzJmYzRjMDI3Y2U4MTlmOTU5OWQzMmVjYWJjOWJkNWE1MWFiMDUzNmEyNTY0
|
11
|
+
M2NhNmYyMDlmMWYwNGE3M2QwMTUyODYzOTIzMWMxYjdkZDUzMWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjRkY2Y4MjU5MGUxNzg3ZmIzYzAzMTM4MmJhMjU1NjY3ZTk1MmE5Yjc3MmQx
|
14
|
+
MDIyMzM1MzVlY2NiZDdhZjUzNzZhMDZkZDIxNmFmYmRkYWNjZGMyMmVhOTA5
|
15
|
+
MGE3ZTJhZGEzMWFmZDcwNWNiYWNmMWY5MTJmYjBhY2JmNzJlYWI=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
@@ -2,29 +2,29 @@ set nonumber
|
|
2
2
|
set hidden
|
3
3
|
noremap <PageUp> :bp<CR>
|
4
4
|
noremap <Left> :bp<CR>
|
5
|
-
<% if @options[:mouse_enabled]
|
5
|
+
<% if @options[:mouse_enabled] -%>
|
6
6
|
noremap <RightMouse> :bp<CR>
|
7
|
-
<% end
|
7
|
+
<% end -%>
|
8
8
|
noremap <PageDown> :bn<CR>
|
9
9
|
noremap <Right> :bn<CR>
|
10
|
-
<% if @options[:mouse_enabled]
|
10
|
+
<% if @options[:mouse_enabled] -%>
|
11
11
|
noremap <LeftMouse> :bn<CR>
|
12
|
-
<% end
|
12
|
+
<% end -%>
|
13
13
|
noremap Q :q<CR>
|
14
14
|
|
15
|
-
<% if @options[:mouse_enabled]
|
15
|
+
<% if @options[:mouse_enabled] -%>
|
16
16
|
set mouse=a
|
17
|
-
<% end %>
|
18
17
|
|
19
|
-
<%
|
18
|
+
<% end -%>
|
19
|
+
<% @buffers.each do |buffer| -%>
|
20
20
|
b <%= buffer[:num] %>
|
21
|
-
<% if buffer[:code]
|
22
|
-
<% buffer[:code].each do |code|
|
21
|
+
<% if buffer[:code] -%>
|
22
|
+
<% buffer[:code].each do |code| -%>
|
23
23
|
<%= code[:start] %>,<%= code[:end] %>SyntaxInclude <%= code[:language] %>
|
24
|
-
<% end
|
25
|
-
<% end
|
26
|
-
<% buffer[:comments].each do |comment|
|
24
|
+
<% end -%>
|
25
|
+
<% end -%>
|
26
|
+
<% buffer[:comments].each do |comment| -%>
|
27
27
|
call matchadd("Comment", "<%= comment %>")
|
28
|
-
<% end
|
29
|
-
<% end
|
28
|
+
<% end -%>
|
29
|
+
<% end -%>
|
30
30
|
b 1
|
data/lib/vimdeck.rb
CHANGED
@@ -136,7 +136,7 @@ module Vimdeck
|
|
136
136
|
end
|
137
137
|
|
138
138
|
def self.script_template
|
139
|
-
template = ERB.new(File.read(File.dirname(__FILE__) + "/templates/script.vim.erb"))
|
139
|
+
template = ERB.new(File.read(File.dirname(__FILE__) + "/templates/script.vim.erb"), nil, '-')
|
140
140
|
template.result(binding)
|
141
141
|
end
|
142
142
|
|
data/presentation/script.vim
CHANGED
@@ -2,177 +2,61 @@ set nonumber
|
|
2
2
|
set hidden
|
3
3
|
noremap <PageUp> :bp<CR>
|
4
4
|
noremap <Left> :bp<CR>
|
5
|
-
|
6
5
|
noremap <PageDown> :bn<CR>
|
7
6
|
noremap <Right> :bn<CR>
|
8
|
-
|
9
7
|
noremap Q :q<CR>
|
10
8
|
|
11
9
|
|
12
|
-
|
13
|
-
|
14
10
|
b 1
|
15
|
-
|
16
|
-
|
17
|
-
|
18
11
|
b 2
|
19
|
-
|
20
|
-
|
21
|
-
|
22
12
|
b 3
|
23
|
-
|
24
|
-
|
25
|
-
|
26
13
|
b 4
|
27
|
-
|
28
|
-
|
29
|
-
|
30
14
|
b 5
|
31
|
-
|
32
|
-
|
33
15
|
call matchadd("Comment", "\\n • Second\\n • Third\\(\\_.*slide 005\\)\\@=")
|
34
|
-
|
35
|
-
|
36
16
|
b 6
|
37
|
-
|
38
|
-
|
39
17
|
call matchadd("Comment", "• First\\(\\_.*slide 006\\)\\@=")
|
40
|
-
|
41
18
|
call matchadd("Comment", "\\n • Third\\(\\_.*slide 006\\)\\@=")
|
42
|
-
|
43
|
-
|
44
19
|
b 7
|
45
|
-
|
46
|
-
|
47
20
|
call matchadd("Comment", "• First\\n • Second\\(\\_.*slide 007\\)\\@=")
|
48
|
-
|
49
|
-
|
50
21
|
b 8
|
51
|
-
|
52
|
-
|
53
22
|
6,17SyntaxInclude ruby
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
23
|
b 9
|
59
|
-
|
60
|
-
|
61
24
|
6,17SyntaxInclude ruby
|
62
|
-
|
63
|
-
|
64
|
-
|
65
25
|
call matchadd("Comment", "module Parts\\n class foo\\n def slide\\n \"of a\"\\n end\\n\\n def can\\n highlight = \\(\\_.*slide 009\\)\\@=")
|
66
|
-
|
67
26
|
call matchadd("Comment", "\\n end\\n end\\n end\\(\\_.*slide 009\\)\\@=")
|
68
|
-
|
69
|
-
|
70
27
|
b 10
|
71
|
-
|
72
|
-
|
73
28
|
6,17SyntaxInclude ruby
|
74
|
-
|
75
|
-
|
76
|
-
|
77
29
|
call matchadd("Comment", "module Parts\\n class foo\\n def slide\\n \"of a\"\\n end\\n\\n def\\(\\_.*slide 010\\)\\@=")
|
78
|
-
|
79
30
|
call matchadd("Comment", "highlight = \"vimdeck\"\\n end\\n end\\n end\\(\\_.*slide 010\\)\\@=")
|
80
|
-
|
81
|
-
|
82
31
|
b 11
|
83
|
-
|
84
|
-
|
85
32
|
6,17SyntaxInclude ruby
|
86
|
-
|
87
|
-
|
88
|
-
|
89
33
|
call matchadd("Comment", "module Parts\\n class foo\\n def slide\\n \"of a\"\\n end\\n\\n def can\\(\\_.*slide 011\\)\\@=")
|
90
|
-
|
91
34
|
call matchadd("Comment", "= \"vimdeck\"\\n end\\n end\\n end\\(\\_.*slide 011\\)\\@=")
|
92
|
-
|
93
|
-
|
94
35
|
b 12
|
95
|
-
|
96
|
-
|
97
36
|
6,17SyntaxInclude ruby
|
98
|
-
|
99
|
-
|
100
|
-
|
101
37
|
call matchadd("Comment", "module\\(\\_.*slide 012\\)\\@=")
|
102
|
-
|
103
38
|
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 012\\)\\@=")
|
104
|
-
|
105
|
-
|
106
39
|
b 13
|
107
|
-
|
108
|
-
|
109
40
|
6,17SyntaxInclude ruby
|
110
|
-
|
111
|
-
|
112
|
-
|
113
41
|
call matchadd("Comment", "module Parts\\n class foo\\n def slide\\(\\_.*slide 013\\)\\@=")
|
114
|
-
|
115
42
|
call matchadd("Comment", "end\\n\\n def can\\n highlight = \"vimdeck\"\\n end\\n end\\n end\\(\\_.*slide 013\\)\\@=")
|
116
|
-
|
117
|
-
|
118
43
|
b 14
|
119
|
-
|
120
|
-
|
121
44
|
6,17SyntaxInclude ruby
|
122
|
-
|
123
|
-
|
124
|
-
|
125
45
|
call matchadd("Comment", "module Parts\\n class foo\\n def\\(\\_.*slide 014\\)\\@=")
|
126
|
-
|
127
46
|
call matchadd("Comment", "\"of a\"\\n end\\n\\n def can\\n highlight = \"vimdeck\"\\n end\\n end\\n end\\(\\_.*slide 014\\)\\@=")
|
128
|
-
|
129
|
-
|
130
47
|
b 15
|
131
|
-
|
132
|
-
|
133
48
|
6,16SyntaxInclude javascript
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
49
|
b 16
|
139
|
-
|
140
|
-
|
141
50
|
6,16SyntaxInclude javascript
|
142
|
-
|
143
|
-
|
144
|
-
|
145
51
|
call matchadd("Comment", "(function( window, $, undefined ) {\\n $( '.hello' ).on( 'click', function sayHello() {\\(\\_.*slide 016\\)\\@=")
|
146
|
-
|
147
52
|
call matchadd("Comment", "\\n });\\n })( window, jQuery );\\(\\_.*slide 016\\)\\@=")
|
148
|
-
|
149
|
-
|
150
53
|
b 17
|
151
|
-
|
152
|
-
|
153
54
|
6,16SyntaxInclude javascript
|
154
|
-
|
155
|
-
|
156
|
-
|
157
55
|
call matchadd("Comment", "<body>\\(\\_.*slide 017\\)\\@=")
|
158
|
-
|
159
56
|
call matchadd("Comment", "</body>\\(\\_.*slide 017\\)\\@=")
|
160
|
-
|
161
|
-
|
162
57
|
b 18
|
163
|
-
|
164
|
-
|
165
58
|
6,16SyntaxInclude javascript
|
166
|
-
|
167
|
-
|
168
|
-
|
169
59
|
call matchadd("Comment", "(function( window, $, undefined ) {\\n $( '.hello' ).on( 'click', function sayHello() {\\(\\_.*slide 018\\)\\@=")
|
170
|
-
|
171
60
|
call matchadd("Comment", "\\n });\\n })( window, jQuery );\\n\\n <body>\\n <a href=\"#\" class=\"hello\">Hello!</a>\\n </body>\\(\\_.*slide 018\\)\\@=")
|
172
|
-
|
173
|
-
|
174
61
|
b 19
|
175
|
-
|
176
|
-
|
177
|
-
|
178
62
|
b 1
|