Original link: https://emacstalk.github.io/post/025/
In Org, TAB is bound to
org-cycle , which can be very convenient to fold/expand the content under a certain title. At that time, in the normal mode of evil, TAB was bound to
evil-jump-forward , which is Corresponding to Vim
Ctrl-ijump forward to the next (newer) location.
Ctrl-oto jump back to the previous (older) location.
At the same time, because in the terminal, TAB and
Ci send the same keycode 9 (ie Character Tabulation ), which leads to the above behavior.
Since most of the authors don’t use evil’s jump function, a simple fix is to simply turn it off:
(setq evil-want-Ci-jump nil )
Note: this initialization needs to be performed before evil is loaded. If you use
use-package , you can use the following methods:
(use-package evil :custom ((evil-want-Ci-jump nil )) :config (evil-mode))
If you want to keep the jump function of evil, you can try to distinguish TAB from
- key bindings – How to distinguish Ci from TAB? – Emacs Stack Exchange
This article is reprinted from: https://emacstalk.github.io/post/025/
This site is for inclusion only, and the copyright belongs to the original author.