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:
parent
db73de0718
commit
80664b0033
@ -70,6 +70,15 @@
|
||||
;; Añadir nueva linea sin salir del modo normal
|
||||
(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
|
||||
(evil-define-key 'motion 'global (kbd "<leader>0") 'delete-window)
|
||||
(evil-define-key 'motion 'global (kbd "<leader>1") 'delete-other-windows)
|
||||
|
Loading…
Reference in New Issue
Block a user