From ed2383c0eebb421a7612cd60df81f2735b82a990 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Tue, 31 Aug 2021 14:15:23 +0200 Subject: [PATCH] Add function to toggle conceal --- .vimrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.vimrc b/.vimrc index 53cf361..b8ef6b8 100644 --- a/.vimrc +++ b/.vimrc @@ -34,6 +34,12 @@ fu! ToggleRnu() " toggle: no numbers - relative nummbers if(&nu) | se nonu nornu | else | se nu rnu | endif endfu +" https://alok.github.io/2018/04/26/using-vim-s-conceal-to-make-languages-more-tolerable/ +fu! ToggleConceal() + if (&cole == 0) | se cole =2 | else | set cole =0 | endif +endfu +com! -nargs=0 ToggleConceal :call ToggleConceal() + " Keybindings """""""""""""