aboutsummaryrefslogtreecommitdiffhomepage
path: root/public/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre/index.html
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-03-12 15:12:10 +0900
committernsfisis <nsfisis@gmail.com>2023-03-12 15:12:10 +0900
commitde13d68cddef5bb321469bcffb868f27ddd5390e (patch)
tree3183bb2bc8b2ad7d34b6953e6a248747239f0afa /public/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre/index.html
parent5b49e6bca39d7cd3b98db8b826dc597d9f758a26 (diff)
downloadblog.nsfisis.dev-de13d68cddef5bb321469bcffb868f27ddd5390e.tar.gz
blog.nsfisis.dev-de13d68cddef5bb321469bcffb868f27ddd5390e.tar.zst
blog.nsfisis.dev-de13d68cddef5bb321469bcffb868f27ddd5390e.zip
style: add .highlight class to pre tag
Diffstat (limited to 'public/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre/index.html')
-rw-r--r--public/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre/index.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/public/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre/index.html b/public/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre/index.html
index 5fc12fc..db28b1c 100644
--- a/public/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre/index.html
+++ b/public/posts/2021-10-02/vim-difference-between-autocmd-bufwrite-and-bufwritepre/index.html
@@ -112,7 +112,7 @@
<a href="https://github.com/vim/vim/blob/8e6be34338f13a6a625f19bcef82019c9adc65f2/src/autocmd.c#L85-L86">https://github.com/vim/vim/blob/8e6be34338f13a6a625f19bcef82019c9adc65f2/src/autocmd.c#L85-L86</a>
</p>
- <pre language="c" linenumbering="unnumbered">
+ <pre class="highlight" language="c" linenumbering="unnumbered">
<code> {&quot;BufAdd&quot;, EVENT_BUFADD},
{&quot;BufCreate&quot;, EVENT_BUFADD},</code>
</pre>
@@ -121,7 +121,7 @@
<a href="https://github.com/vim/vim/blob/8e6be34338f13a6a625f19bcef82019c9adc65f2/src/autocmd.c#L95-L97">https://github.com/vim/vim/blob/8e6be34338f13a6a625f19bcef82019c9adc65f2/src/autocmd.c#L95-L97</a>
</p>
- <pre language="c" linenumbering="unnumbered">
+ <pre class="highlight" language="c" linenumbering="unnumbered">
<code> {&quot;BufRead&quot;, EVENT_BUFREADPOST},
{&quot;BufReadCmd&quot;, EVENT_BUFREADCMD},
{&quot;BufReadPost&quot;, EVENT_BUFREADPOST},</code>
@@ -131,7 +131,7 @@
<a href="https://github.com/vim/vim/blob/8e6be34338f13a6a625f19bcef82019c9adc65f2/src/autocmd.c#L103-L105">https://github.com/vim/vim/blob/8e6be34338f13a6a625f19bcef82019c9adc65f2/src/autocmd.c#L103-L105</a>
</p>
- <pre language="c" linenumbering="unnumbered">
+ <pre class="highlight" language="c" linenumbering="unnumbered">
<code> {&quot;BufWrite&quot;, EVENT_BUFWRITEPRE},
{&quot;BufWritePost&quot;, EVENT_BUFWRITEPOST},
{&quot;BufWritePre&quot;, EVENT_BUFWRITEPRE},</code>
@@ -148,7 +148,7 @@
<a href="https://github.com/neovim/neovim/blob/71d4f5851f068eeb432af34850dddda8cc1c71e3/src/nvim/auevents.lua#L119-L124">https://github.com/neovim/neovim/blob/71d4f5851f068eeb432af34850dddda8cc1c71e3/src/nvim/auevents.lua#L119-L124</a>
</p>
- <pre language="lua" linenumbering="unnumbered">
+ <pre class="highlight" language="lua" linenumbering="unnumbered">
<code> aliases = {
BufCreate = &apos;BufAdd&apos;,
BufRead = &apos;BufReadPost&apos;,
@@ -161,7 +161,7 @@ FileEncoding = &apos;EncodingChanged&apos;,
ところで、上では取り上げなかった<code>FileEncoding</code>だが、これは<code>:help FileEncoding</code>にしっかりと書いてある。
</p>
- <pre class="monospaced">
+ <pre class="monospaced highlight">
<code> *FileEncoding*
FileEncoding Obsolete. It still works and is equivalent
to |EncodingChanged|.</code>