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
Branches
No related tags found
No related merge requests found
...@@ -1259,8 +1259,18 @@ imap <c-x><c-l> <plug>(fzf-complete-line) ...@@ -1259,8 +1259,18 @@ imap <c-x><c-l> <plug>(fzf-complete-line)
if has('conceal') if has('conceal')
set conceallevel=2 concealcursor=niv set conceallevel=2 concealcursor=niv
endif 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 endfunction
nnoremap <silent> <Leader>tc :call ToggleConcealLevel()<CR>
" For more convenient vimdiffing " For more convenient vimdiffing
if &diff if &diff
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment