evil-org-mode icon indicating copy to clipboard operation
evil-org-mode copied to clipboard

evil-org-end-of-line broken in visual block mode

Open betaprior opened this issue 7 years ago • 2 comments

Default vim/EVIL behavior: given the text

foo foo asdfsadf bar baz

The following sequence of actions will add " hello" to every line.

  1. 0 (go to the beginning of the line)
  2. C-v (start visual block mode)
  3. $ (go to the end of the line)
  4. 2j (select 3 lines in visual block mode)
  5. A
  6. " hello"
  7. ESC

However, in org mode with evil-org-mode activated this is broken because $ is bound to evil-org-end-of-line. Binding it to evil-end-of-line restores correct behavior.

betaprior avatar Nov 08 '18 09:11 betaprior

I think I have a related problem:

When soft-wrapping lines (in my case with olivetti-mode), evil-org-end-of-line will go to the end of the visual line, not the actual one. evil-end-of-line behaves as expected.

iliakur avatar Sep 21 '19 12:09 iliakur

@betaprior This is kind of intended, because $ goes to the end of visual line. Maybe pressing $ twice should go to the real end, but $ is already kind of overloaded for headings. I don't think I see a another way to fix this, other then unmapping $ and losing some other functionality.

Somelauw avatar Dec 22 '20 20:12 Somelauw