evil mode j and k in markdown and text modes moves down paragraphs (and sometimes to other arbitrary points down/up the paragraph) instead of up and down a single line. How can I change this behaviour?

  • What does F1 k j say? I have a hard time believing this is Evil's fault. – wasamasa Jan 4 '19 at 18:50
  • Here's what it says: j runs the command evil-next-line (found in evil-motion-state-map), which is an interactive compiled Lisp function in evil-commands.el'. It is bound to <down>, j. (evil-next-line &optional COUNT) Move the cursor COUNT lines down.` – spheroid Jan 4 '19 at 18:52

This is likely happening because you have visual-line mode enabled and each paragraph is a single line. You can rebind j and k to move by visual line (evil-next-visual-line for j, for instance).

  • This worked thanks! – spheroid Jan 5 '19 at 14:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.