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.
- 0 (go to the beginning of the line)
- C-v (start visual block mode)
- $ (go to the end of the line)
- 2j (select 3 lines in visual block mode)
- A
- " hello"
- 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.