From 09a84cae2381ec7af181c792103bea15d472305b Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sat, 24 Sep 2022 12:31:16 +0200 Subject: [PATCH] Update anki cloze commands --- .vim/ftplugin/pandoc/anki.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vim/ftplugin/pandoc/anki.vim b/.vim/ftplugin/pandoc/anki.vim index 2e3f3c9..95f3789 100644 --- a/.vim/ftplugin/pandoc/anki.vim +++ b/.vim/ftplugin/pandoc/anki.vim @@ -18,5 +18,5 @@ " In this sentence this word was closed. " ``` -au FileType pandoc com! -range AnkiRemoveAllClozes :%s/{{c\d\+:://ge | :%s/}}//ge | :%s/START\nCloze\n//ge | :%s/END\n//ge +au FileType pandoc com! -range AnkiRemoveAllClozes :%s/\%V{{c\d\+:://ge | :%s/\%V}}//ge | :%s/\%VSTART\nCloze\n//ge | :%s/\%VEND\n//ge au FileType pandoc com! -range AnkiRemoveSelectedClozes :%s/\%V{{c\d\+:://ge | :%s/\%V}}//ge | :%s/\%VSTART\nCloze\n//ge | :%s/\%VEND\n//ge