Skip to content

Instantly share code, notes, and snippets.

@mattn
Created December 9, 2014 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/982bce75a390d3422590 to your computer and use it in GitHub Desktop.
Save mattn/982bce75a390d3422590 to your computer and use it in GitHub Desktop.
noremap <plug>(foo) :<c-u>echo "foo"<cr>
" Should be 0
echo hasmapto('<plug>(foo)', 'n')
nmap X <plug>(foo)
" Should be 1
echo hasmapto('<plug>(foo)', 'n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment