evil-org-mode
evil-org-mode copied to clipboard
Bindings of t, T, o, O
The keys, t
, T
, o
, O
, behave rather unexpected, considering they have rather standard usage in vi/vim. Perhaps you want to leave them to evil-leader
, or at least let people choose whether to enable them or not.
My two cents: o
and O
seem fairly natural. They're not exactly the same behavior as Vim, but close. t
and T
are nothing like Vim but I think they work, at least for me, since the "todo" concept is occurring to so often.
Trying out evil-org-mode, I was also confused by the behavior of O
. In vim, O
inserts a line before the current line. The new behavior inserts a line after the current line, so it's the opposite of what you'd expect.
Fortunately I don't use t
much, but I imagine people who use it will be confused by this change as well.
I added these as a matter of convenience for my work flow, but perhaps they should be redone.
I actually like o, but I agree with O being strange. It's the only binding I've removed.
The only thing preventing me for using this mode is these binding. No kidding those are 2 things I use massively in vi-mode. Would it be possible to add an option tu use alternate bindings as suggested @jxy?
I use the following work-around:
(evil-define-key 'normal evil-org-mode-map
(kbd "t") 'evil-find-char-to
(kbd "T") 'evil-find-char-to-backward
(kbd "C-t") 'org-todo
(kbd "O") 'evil-open-above
(kbd "H") 'org-shiftleft
(kbd "L") 'org-shiftright)