rename 'query' to 'term' to stop builtin highlight
add <SID> handle so plugin actually works
rename 'hist' to avoid conflict with built-in
add more entries to key code dictionary
use CTRL_W enum from dict rather than raw code
extend native ^R with ^R^L to insert current line
fix unclosed if at the end
rename 'match' and add flags 'skip' and 'found'