0

The following key is supposed to go to the end of the visual line and switch to insert mode:

(define-key evil-normal-state-map (kbd "A") (lambda () (interactive) (end-of-visual-line) (evil-insert)))

However, the function returns the error: wrong number of arguments: (1 . 3), 0. What is the correct version?

2
  • 2
    evil-insert requires at least one argument (see its docstring). Alternatively, you could use (evil-insert-state). Commented Jan 22 at 21:34
  • 2
    The question is likely a duplicate. Search for your error message. Delete the question when you find that it's a duplicate. Thx.
    – Drew
    Commented Jan 23 at 2:39

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.