Consider the following function and mapping.
function! DoMagic() if s:isActive echom "Performing magic!" else " Perform default action of whatever key was mapped to this function endif endfunction map F :call DoMagic()<CR>
Is there a magic command that tells vim to pretend the mapping never happened if some condition is not true?