]> Sergey Matveev's repositories - zk.git/commitdiff
Command line highlight
authorSergey Matveev <stargrave@stargrave.org>
Fri, 9 May 2025 21:33:22 +0000 (00:33 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 9 May 2025 21:33:22 +0000 (00:33 +0300)
VIM

diff --git a/VIM b/VIM
index ff68cab7b42f0ad28cce5ecd5241ad201a2c8e17..9ffa6ff4f4827f7e85ec37687f650784cbef88b6 100644 (file)
--- a/VIM
+++ b/VIM
@@ -8,10 +8,15 @@ goto any page relative to the root.
 
 Use expand("%:r") to get current file path relative to the root.
 
+Use filename completion (:help compl-filename) to complete
+directories and filenames in them.
+
 Square bracketed links can be highlighted with:
 
     syntax region zkLink start="\[\S" end="\S]"
     highlight link zkLink String
 
-Use filename completion (:help compl-filename) to complete
-directories and filenames in them.
+Command ([FORMAT]) lines can be highlighted with:
+
+    syntax match command /^.*\r$/
+    highlight command ctermbg=blue