Add useful shortcuts for motion modes for order code quickly.

Utilize tab for line indentation, leader+y to access
kill-ring history, and leader++ to execute expand-region.
This commit is contained in:
KJ 2024-03-28 22:48:59 -04:00
parent db73de0718
commit 80664b0033

View File

@ -70,6 +70,15 @@
;; Añadir nueva linea sin salir del modo normal ;; Añadir nueva linea sin salir del modo normal
(evil-define-key 'motion 'global (kbd "<leader><RET>") 'newline) (evil-define-key 'motion 'global (kbd "<leader><RET>") 'newline)
;; Abrir historial del kill-ring/portapapeles
(evil-define-key vim-states 'global (kbd "<leader>y") 'consult-yank-pop)
;; Expand region desde motion states
(evil-define-key 'motion 'global (kbd "<leader>+") 'er/expand-region)
;; Identado en motion modes.
(evil-define-key 'motion 'global (kbd "<tab>") 'indent-for-tab-command)
;; Atajos con leader key para frames ;; Atajos con leader key para frames
(evil-define-key 'motion 'global (kbd "<leader>0") 'delete-window) (evil-define-key 'motion 'global (kbd "<leader>0") 'delete-window)
(evil-define-key 'motion 'global (kbd "<leader>1") 'delete-other-windows) (evil-define-key 'motion 'global (kbd "<leader>1") 'delete-other-windows)