Skip to content
Snippets Groups Projects
Commit fa3f39b0 authored by Henrik Tjäder's avatar Henrik Tjäder
Browse files

Add shortcut for changing conceallevel

parent 29c6f8c2
No related branches found
No related tags found
No related merge requests found
......@@ -1259,8 +1259,18 @@ imap <c-x><c-l> <plug>(fzf-complete-line)
if has('conceal')
set conceallevel=2 concealcursor=niv
endif
" Allows for toggling conceal level easily
" https://alok.github.io/2018/04/26/using-vim-s-conceal-to-make-languages-more-tolerable/
function! ToggleConcealLevel()
if &conceallevel == 0
setlocal conceallevel=2
else
setlocal conceallevel=0
endif
endfunction
nnoremap <silent> <Leader>tc :call ToggleConcealLevel()<CR>
" For more convenient vimdiffing
if &diff
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment