Skip to content

Commit

Permalink
📝 Improve screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Feb 28, 2023
1 parent 9b8ce94 commit 423f183
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/diff.html
2 changes: 2 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
MD033: false
17 changes: 17 additions & 0 deletions scripts/generate-diff.html.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env -S vi -u
set runtimepath+=.
filetype on
edit examples/main.cpp
Insights!
augroup init
autocmd!
autocmd VimEnter * call s:init()
augroup END

function! s:init() abort
TOhtml
" delete the last blank line
$delete
saveas! diff.html
qall
endfunction

0 comments on commit 423f183

Please sign in to comment.