From 423f18345bd6e7a7281c5e9632474f88eca95500 Mon Sep 17 00:00:00 2001 From: Wu Zhenyu Date: Tue, 28 Feb 2023 16:34:37 +0800 Subject: [PATCH] :memo: Improve screenshot --- .gitignore | 1 + .markdownlint.yaml | 2 ++ scripts/generate-diff.html.vim | 17 +++++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 .gitignore create mode 100644 .markdownlint.yaml create mode 100755 scripts/generate-diff.html.vim diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f504df3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/diff.html diff --git a/.markdownlint.yaml b/.markdownlint.yaml new file mode 100644 index 0000000..dfd4504 --- /dev/null +++ b/.markdownlint.yaml @@ -0,0 +1,2 @@ +--- +MD033: false diff --git a/scripts/generate-diff.html.vim b/scripts/generate-diff.html.vim new file mode 100755 index 0000000..0cfc958 --- /dev/null +++ b/scripts/generate-diff.html.vim @@ -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