<div dir="ltr"><span style="color:rgb(0,0,0);font-size:12.6666669845581px">Hello Evil users, </span><div style="color:rgb(0,0,0);font-size:12.6666669845581px"><br></div><div style="color:rgb(0,0,0);font-size:12.6666669845581px">The key &#39;D&#39; in normal mode, deletes the line after the cursor. </div><div style="color:rgb(0,0,0);font-size:12.6666669845581px"><br></div><div style="color:rgb(0,0,0);font-size:12.6666669845581px">I would like to make the key &#39;Y&#39; consistent with this. So I wrote a function for this, after finding out the command that&#39;s called after every key action with &quot;C-h k&quot;. </div><div style="color:rgb(0,0,0);font-size:12.6666669845581px"><br></div><div style="color:rgb(0,0,0);font-size:12.6666669845581px">So, I came with this:</div><div style="color:rgb(0,0,0);font-size:12.6666669845581px"><br></div><div style="color:rgb(0,0,0);font-size:12.6666669845581px"><div>        (defun my-make-Y-key-working ()</div><div>           (interactive) </div><div>            (evil-visual-char)</div><div>            (evil-end-of-line)</div><div>            (evil-yank BEG END)</div><div>            (evil-exit-visual-state)</div><div>          )</div><div><br></div><div><br></div><div>But it gives me an error on evil-yank, he don&#39;t accept BEG END as input. The evil-yank command requires parameters on the place of BEG and END, but I couldn&#39;t figure out what the input should be then. </div></div><div style="color:rgb(0,0,0);font-size:12.6666669845581px"><br></div><div style="color:rgb(0,0,0);font-size:12.6666669845581px">I found nothing in the documentation about this. </div><div style="color:rgb(0,0,0);font-size:12.6666669845581px"><br></div><div style="color:rgb(0,0,0);font-size:12.6666669845581px">Next to solving the issue with BEG END, what would be your suggestion in which way could I figure such problems out in the future? Thanks in advance for your reply. It&#39;s appreciated. </div><div style="color:rgb(0,0,0);font-size:12.6666669845581px"><img src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" class=""></div><div class="" style="color:rgb(0,0,0);font-size:12.6666669845581px"><div id=":22a" class="" tabindex="0"><img class="" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><span class="" style="color:rgb(0,0,0);font-size:12.6666669845581px"><font color="#888888"><span style="color:rgb(0,0,0);font-size:12.6666669845581px"><font color="#888888"><div>Ernst</div></font></span></font></span><div><br></div>
</div>