Somelauw / evil-org-mode

Supplemental evil-mode keybindings to emacs org-mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

betaprior opened this issue · 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.

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.

@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.