Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim: cannot remap star key

Tags:

vim

When trying to fix the issue reported in this question I found that the real problem is that I cannot remap the star key * using a Windows PC and Vim 7.4 with patches 1-274: if I start vim with vim -N -u NONE and run the command :noremap * :echo "star"<CR> and press *, vim tries to perform a search instead of echoing "star". Running :verbose map * however correctly returns :echo "star"<CR>.

Can someone reproduce this behavior? Is there a workaround? I also reported this to the vim dev group.

like image 675
petobens Avatar asked Jan 24 '26 01:01

petobens


1 Answers

Mapping <kMultiply> instead of * solved the problem. Really strange since I do not use the keypad multiply key.

like image 171
petobens Avatar answered Jan 26 '26 20:01

petobens



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!