I am binding yankstack to these keys:
(note the ^[
here are the raw char typed in with ctrl+v)
set <A-D>=^[d
set <A-S-D>=^[D
nmap <A-D> <Plug>yankstack_substitute_older_paste
nmap <A-S-D> <Plug>yankstack_substitute_newer_paste
The <A-S-D>
is properly interpreted, but the <A-D>
is not.
Curiously, if I type :set <A-D>
, I get back
<Ä> ^[D
So somehow it seems vim is thinking alt+d is equivalent to something that is not being sent by my terminal when I type Alt+D.
I had to grab another of the high-F keys (the set of which i am going to run out of eventually) to get it working:
set <F26>=^[d
set <A-S-D>=^[D
nmap <F26> <Plug>yankstack_substitute_older_paste
nmap <A-S-D> <Plug>yankstack_substitute_newer_paste
Anyone know what this is all about?