justinmk/vim-sneak — pull request #129 by blueyed (2014-11-18 12:32:11+00:00)
Title: Use `<expr>` nmap for sneak#cancel mapping

Use map to avoid remapping of e.g. ':', but return , which needs to get remapped (for e.g. ``).

I am using the following mappings, and using `Esc` or e.g. `Home` (which uses an escape code) while using sneak would trigger the warning message:

nnoremap . :
vnoremap . :
nnoremap : :echohl WarningMsg \| echomsg "STOP USING SHIFT!" \| echohl None \| sleep 500m: