From cd2fa19f861b3fec4b8cafe43aa05363f4cfc806 Mon Sep 17 00:00:00 2001 From: Tinmarino Date: Wed, 14 Jun 2023 10:42:54 -0400 Subject: [PATCH] Doc: Explain how to clear typeface highlight (#1346) --- doc/design_notes.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/doc/design_notes.md b/doc/design_notes.md index c96c648..838166c 100644 --- a/doc/design_notes.md +++ b/doc/design_notes.md @@ -245,9 +245,24 @@ reasons for such a complex system is: TODO currently the typeface delimiters are customized that way: ```vim -" Typeface: -> u.vim + +" 1/ Redraw: Typeface: -> u.vim +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" let s:typeface_dic = vimwiki#vars#get_syntaxlocal('typeface') call vimwiki#u#hi_typeface(s:typeface_dic) + + +" 2/ Clear typeface highlighting (see #1346) +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" Create a dic with no highlight but yes with all keys +" -- So that they are effectivemly overwritten +let typeface_dic = {'bold': [], 'italic': [], 'underline': [], 'bold_italic': [], 'code': [], 'del': [], 'sup': [], 'sub': [], 'eq': []} + +" Just for consistency, this is an internal variable +echo vimwiki#vars#set_syntaxlocal('typeface', typeface_dic) + +" Here is a Vim aware syntax highligthing big command +verbose call vimwiki#u#hi_typeface(typeface_dic) ```