You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using vi-mode in sdl2 version lem.
If you use mouse click, to select a region.
And then using keyboard to use vi commands, the selected region still be slected, and is not count as the vi-visual mode.
To let the vi-mode works normally, you have to type escape or click the mouse again, to un-mark the selected region.
However, i want to know if there is a way to un-mark the selected region selected by mouse-click automatically while entering the vi-mode.
The text was updated successfully, but these errors were encountered:
I didn't find a universal way to defien escape key sequence for vi-mode, so i do this:
;; use jk to escape vim. (use v key to escape in visual mode)
(define-key lem-vi-mode:*insert-keymap* "j k" 'lem-vi-mode/commands:vi-normal)
(define-key lem-vi-mode:*ex-keymap* "j k" 'lem-vi-mode/commands:vi-normal)
(define-key lem-vi-mode:*normal-keymap* "Space j k" 'escape)
However, i don't know how to do this, and wheter there are existing hooks for this purpose.
sakurawald
changed the title
Un-mark the selected region automatically in vi-mode.
sync the mark region between vi-visual-mode and the mark region selected by mouse-clicking.
Nov 15, 2024
vindarel
changed the title
sync the mark region between vi-visual-mode and the mark region selected by mouse-clicking.
Feature: sync the mark region between vi-visual-mode and the mark region selected by mouse-clicking.
Nov 19, 2024
vindarel
changed the title
Feature: sync the mark region between vi-visual-mode and the mark region selected by mouse-clicking.
Feature: sync the mark region between vi-visual-mode and the mark region selected by mouse-clicking.
Nov 19, 2024
vindarel
changed the title
Feature: sync the mark region between vi-visual-mode and the mark region selected by mouse-clicking.
Feature: sync the mark region between vi-visual-mode and the mark region selected by mouse-clicking.
Nov 19, 2024
I am using
vi-mode
insdl2 version lem
.If you use
mouse
click, to select a region.And then using
keyboard
to usevi commands
, theselected region
still be slected, and is not count as thevi-visual mode
.To let the
vi-mode
works normally, you have to typeescape
or click the mouse again, to un-mark the selected region.However, i want to know if there is a way to un-mark the selected region selected by mouse-click automatically while entering the vi-mode.
The text was updated successfully, but these errors were encountered: