... | ... |
@@ -13,3 +13,37 @@ profile: |
13 | 13 |
--cmd 'profile! file ./**.vim' \ |
14 | 14 |
-c 'args **/*.*' \ |
15 | 15 |
-c 'qall!' |
16 |
+ |
|
17 |
+.PHONY: test |
|
18 |
+test: |
|
19 |
+ vim \ |
|
20 |
+ -u test/vimrc \ |
|
21 |
+ -c 'args test/test.in' \ |
|
22 |
+ -c 'set commentstring=#%s shiftwidth=2' \ |
|
23 |
+ -c 'UnobtrusiveFoldComment!' \ |
|
24 |
+ -c 'UnobtrusiveFoldDebug' \ |
|
25 |
+ -c 'write! test/test.out' \ |
|
26 |
+ -c 'qall!' |
|
27 |
+ diff --color -u test/test.txt test/test.out |
|
28 |
+ |
|
29 |
+.PHONY: demo |
|
30 |
+demo: |
|
31 |
+ printf '%s %s\n' \ |
|
32 |
+ 'vimrc' '~/.vim/vimrc' \ |
|
33 |
+ 'yaml' '~/projects/ansible/playbook/desktop/desktop.yml' \ |
|
34 |
+ | while read name file; \ |
|
35 |
+ do \ |
|
36 |
+ < /dev/null asciinema rec "doc/demo-$$name.cast" \ |
|
37 |
+ --overwrite \ |
|
38 |
+ --title "demo-$$name" \ |
|
39 |
+ --cols=80 \ |
|
40 |
+ --rows=50 \ |
|
41 |
+ --command "vim \ |
|
42 |
+ -u test/vimrc \ |
|
43 |
+ -c 'silent call Demo(\"$$file\")' \ |
|
44 |
+ "; \ |
|
45 |
+ svg-term \ |
|
46 |
+ --from 50 \ |
|
47 |
+ --in "doc/demo-$$name.cast" \ |
|
48 |
+ --out "doc/demo-$$name.svg"; \ |
|
49 |
+ done |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,15 @@ |
1 |
+.PHONY: all |
|
2 |
+all: doc |
|
3 |
+ |
|
4 |
+.PHONY: doc |
|
5 |
+doc: |
|
6 |
+ vimdoc . |
|
7 |
+ |
|
8 |
+.PHONY: profile |
|
9 |
+profile: |
|
10 |
+ vim \ |
|
11 |
+ -u test/vimrc \ |
|
12 |
+ --cmd 'profile start test/profile.out' \ |
|
13 |
+ --cmd 'profile! file ./**.vim' \ |
|
14 |
+ -c 'args **/*.*' \ |
|
15 |
+ -c 'qall!' |