Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement