Add function to toggle conceal

master
Hektor Misplon 2021-08-31 14:15:23 +02:00
parent c6f6d7304c
commit ed2383c0ee
1 changed files with 6 additions and 0 deletions

6
.vimrc
View File

@ -34,6 +34,12 @@ fu! ToggleRnu() " toggle: no numbers - relative nummbers
if(&nu) | se nonu nornu | else | se nu rnu | endif if(&nu) | se nonu nornu | else | se nu rnu | endif
endfu 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 " Keybindings
""""""""""""" """""""""""""