Skip to content

Commit 423f183

Browse files
committed
📝 Improve screenshot
1 parent 9b8ce94 commit 423f183

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/diff.html

.markdownlint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
MD033: false

scripts/generate-diff.html.vim

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env -S vi -u
2+
set runtimepath+=.
3+
filetype on
4+
edit examples/main.cpp
5+
Insights!
6+
augroup init
7+
autocmd!
8+
autocmd VimEnter * call s:init()
9+
augroup END
10+
11+
function! s:init() abort
12+
TOhtml
13+
" delete the last blank line
14+
$delete
15+
saveas! diff.html
16+
qall
17+
endfunction

0 commit comments

Comments
 (0)