-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: unnecessary remap to select-mode which disturbs nvim-snippy (#9)
`vmap` is used to map `gx` to visual-mode. However, `vmap` not only maps to visual-mode but also select-mode. This is first of all not necessary because `xmap` is enough to map to visual-mode but more importantly it disturbs other plugins which rely on select-mode like `nvim-snippy`. During snippet-expansion snippy selects with the select-mode placeholders which should be overwritten by the user. Typing `g` becomes impossible without pressing another 2nd key because it's remapped by gx-extended. It is generally good practice to use xmap instead of vmap unless necessary.
- Loading branch information
Showing
3 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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