六一的部落格


关关难过关关过,前路漫漫亦灿灿。



在Emacs使用Vim命令编辑文本


便签

Manual

GitHub


安装依赖

-
goto-chg GitHub
undo-tree Elpa
undo-fu Melpa
1;; (use-package goto-chg
2;;   :ensure t)
3;; (use-package undo-tree
4;;   :ensure t)
5;; (use-package undo-fu
6;;   :ensure t)

evil-安装

 1;; (use-package evil
 2;;   :ensure t
 3;;   :config (progn (evil-mode t)
 4;;                  (setq evil-default-state 'emacs)
 5;;                  ;; (evil-set-initial-state evil-mode 'emacs)
 6;;                  (setq evil-emacs-state-cursor '("grey" box)) ;; C-z
 7;;                  (setq evil-normal-state-cursor '("green" box)) ;; esc
 8;;                  (setq evil-insert-state-cursor '("red" box)) ;; i
 9;;                  (setq evil-replace-state-cursor '("red" hollow)) ;; r
10;;                  (setq evil-visual-state-cursor '("yellow" box))))

相关插件

-
evil-tabs tabs标签
evil-leader 定义evil-mode下使用的快捷键

evil-tabs

1;; (use-package evil-tabs
2;;   :ensure t
3;;   :config (global-evil-tabs-mode t))

evil-leader

GitHub

1;; (use-package evil-leader
2;; :ensure t
3;; :init (progn
4;;           (global-evil-leader-mode t)
5;;           (evil-leader/set-leader "<SPC>")
6;;           (evil-leader/set-key
7;;             "e" 'find-file)))

evil


在Emacs使用Vim命令编辑文本


便签

Manual

GitHub


安装依赖

-
goto-chg GitHub
undo-tree Elpa
undo-fu Melpa
1;; (use-package goto-chg
2;;   :ensure t)
3;; (use-package undo-tree
4;;   :ensure t)
5;; (use-package undo-fu
6;;   :ensure t)

evil-安装

 1;; (use-package evil
 2;;   :ensure t
 3;;   :config (progn (evil-mode t)
 4;;                  (setq evil-default-state 'emacs)
 5;;                  ;; (evil-set-initial-state evil-mode 'emacs)
 6;;                  (setq evil-emacs-state-cursor '("grey" box)) ;; C-z
 7;;                  (setq evil-normal-state-cursor '("green" box)) ;; esc
 8;;                  (setq evil-insert-state-cursor '("red" box)) ;; i
 9;;                  (setq evil-replace-state-cursor '("red" hollow)) ;; r
10;;                  (setq evil-visual-state-cursor '("yellow" box))))

相关插件

-
evil-tabs tabs标签
evil-leader 定义evil-mode下使用的快捷键

evil-tabs

1;; (use-package evil-tabs
2;;   :ensure t
3;;   :config (global-evil-tabs-mode t))

evil-leader

GitHub

1;; (use-package evil-leader
2;; :ensure t
3;; :init (progn
4;;           (global-evil-leader-mode t)
5;;           (evil-leader/set-leader "<SPC>")
6;;           (evil-leader/set-key
7;;             "e" 'find-file)))