evil 的快捷键文件在哪绑定的?

使用 spacemacs 后, 很多快捷键都不能用了, 比如 C-e 和 C-d 被 evil占用了. 想改回来, 但是找不到那个绑定快捷键的地方. 还有比如 C-k 在编辑模式的时候也不好使了, 整个操作都乱糟糟的了 编辑模式的时候 C-p 和 C-n 都不能用, 只能左右移动. 基本操作都略费劲了. 这个过渡有点 high 了…

C-e runs the command evil-scroll-line-down (found in evil-motion-state-map),
which is an interactive Lisp function in ‘evil-commands.el’.

It is bound to C-e.

(evil-scroll-line-down COUNT)

Scrolls the window COUNT lines downwards.
If COUNT is not specified the function uses
‘evil-scroll-line-count’, which is the last used count.

[back]

在scratch buffer 里面 C-e 又变成了 evil-copy-from-below 我使用的 emacs 是按照 spacemacs 的 github 上用 brew 下载的

(define-key evil-insert-state-map (kbd "C-]") 'forward-char)之类的。把 insert 换成 normal 之类的就可以了。


顺带,可能会被 major-mode 里面的按键覆盖。

就是把那些乱七八糟的绑定覆盖一遍么

看你的描述好像是你想在编辑模式用 emacs 风格的按键绑定。

如果是这样的话,只要在 dotspacemacs 文件中设置: dotspacemacs-editing-style 'hybrid

1 个赞

oh my god! good for you budy.

恭喜,你已加入邪教。 http://spacemacs.org/doc/DOCUMENTATION.html#editing-styles

这里有比较详细的说明。

love you so much, 刚学到 spacemacs, 那个玩意还没看