As question imply, I'm trying to make a command based on the word under cursor, but that is between two character, in this example, asterisk.
Inspired from here, I made:
map <F3> "zyiw:exe "h "expand("<cword>")""<CR>
Where i use it on
h for testing.
*E426* "works *:ta* "works *:tag* "only match *tag* instead of *:tag* *tag* "works
But even though it seems to work fine for
*:ta*, it doesn't seem to work right for
I'm aware one need to add characters/symbol to
iskeyword so that it is correctly matched as a
word, but in this instance, i didn't need to do so (though that only worked for
*:ta* and not
*:tag* as previously mentioned).
Slightly related to this post.