邪恶模式 evil-shift-left 失去选择是否有任何原因?
即,我希望能够在选择上多次点击 '>' 和 '<' 来左右移动文本。
这是下面的实现。无论如何添加一个建议来改变这种行为?
邪恶的命令.el
(evil-define-operator evil-shift-right (beg end &optional count)
"Shift text from BEG to END to the right.
The text is shifted to the nearest multiple of `evil-shift-width'
\(the rounding can be disabled by setting `evil-shift-round').
See also `evil-shift-left'."
:type line
(interactive "<r><vc>")
(let ((beg (set-marker (make-marker) beg))
(end (set-marker (make-marker) end)))
(dotimes (i (or count 1))
(if (not evil-shift-round)
(indent-rigidly beg end evil-shift-width)
(let* ((indent
(save-excursion
(goto-char beg)
(evil-move-beginning-of-line nil)
(while (and …Run Code Online (Sandbox Code Playgroud)