Last active
August 29, 2015 14:23
-
-
Save nikhgupta/129747ff048c641d8185 to your computer and use it in GitHub Desktop.
Mapping in Evil mode to indent a region and shift it right.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun evil-shift-right-and-indent() | |
(interactive) | |
(evil-indent (region-beginning) (region-end)) | |
(evil-shift-right (region-beginning) (region-end))) | |
(define-key evil-visual-state-map ">" 'shift-right-and-indent) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment