Evil: Set undo system and keybinding.
This commit is contained in:
parent
c01fb4f69c
commit
92e3f98271
@ -15,6 +15,7 @@
|
|||||||
(setq evil-default-state 'emacs) ;; Modo por defecto en emacs
|
(setq evil-default-state 'emacs) ;; Modo por defecto en emacs
|
||||||
(setq evil-emacs-state-cursor 'bar) ;; Cursor de emacs state en bar
|
(setq evil-emacs-state-cursor 'bar) ;; Cursor de emacs state en bar
|
||||||
(evil-set-leader 'motion (kbd "SPC")) ;; Leader key
|
(evil-set-leader 'motion (kbd "SPC")) ;; Leader key
|
||||||
|
(evil-set-undo-system 'undo-redo)
|
||||||
|
|
||||||
;; Habilitar atajos de de tecla de emacs en insert state
|
;; Habilitar atajos de de tecla de emacs en insert state
|
||||||
(setq evil-insert-state-map (make-sparse-keymap))
|
(setq evil-insert-state-map (make-sparse-keymap))
|
||||||
@ -33,6 +34,13 @@
|
|||||||
(evil-define-key vim-states 'global (kbd "C-'") 'evil-emacs-state)
|
(evil-define-key vim-states 'global (kbd "C-'") 'evil-emacs-state)
|
||||||
(evil-define-key 'emacs 'global (kbd "C-'") 'evil-normal-state)
|
(evil-define-key 'emacs 'global (kbd "C-'") 'evil-normal-state)
|
||||||
|
|
||||||
|
;; Cambiar C-z a deshacer
|
||||||
|
(evil-define-key all-states 'global (kbd "C-z") 'undo)
|
||||||
|
|
||||||
|
;; Cambiar C-r a ripgrep y U hasta hacer redo
|
||||||
|
(evil-define-key vim-states 'global (kbd "C-r") 'rg)
|
||||||
|
(evil-define-key 'normal 'global (kbd "U") 'undo-redo)
|
||||||
|
|
||||||
;; Navegación entre frames
|
;; Navegación entre frames
|
||||||
(evil-define-key 'motion 'global (kbd "<leader>wh") 'windmove-left)
|
(evil-define-key 'motion 'global (kbd "<leader>wh") 'windmove-left)
|
||||||
(evil-define-key 'motion 'global (kbd "<leader>wj") 'windmove-down)
|
(evil-define-key 'motion 'global (kbd "<leader>wj") 'windmove-down)
|
||||||
|
Loading…
Reference in New Issue
Block a user