Skip to content
ehamberg edited this page May 26, 2011 · 6 revisions

Welcome to the vim-cute-python wiki!

Function to toggle conceal level

This function was provided by sethwoodworth and will turn concealing on/off:

function! ToggleConceal()
  if &conceallevel != '0'
    set conceallevel=0
    echo "ConcealLevel off"
  else
    set conceallevel=2
    echo "ConcealLevel on"
  endif
endfunction

You can then bind this to a key, e.g. F4:

nnoremap <F4> :call ToggleConceal()
Clone this wiki locally