Add visual mode selection change binds

This commit is contained in:
Oliver Blanthorn 2020-01-01 22:43:15 +00:00
parent cc0e609c71
commit 4f3fb92e9c
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -314,6 +314,15 @@ export class default_config {
"<Escape>": "composite js document.getSelection().empty(); mode normal; hidecmdline",
"<C-[>": "composite js document.getSelection().empty(); mode normal ; hidecmdline",
"y": "composite js document.getSelection().toString() | clipboard yank",
"l": 'js document.getSelection().modify("extend","forward","character")',
"h": 'js document.getSelection().modify("extend","backward","character")',
"e": 'js document.getSelection().modify("extend","forward","word")',
"w": 'js document.getSelection().modify("extend","forward","word"); js document.getSelection().modify("extend","forward","character")',
"j": 'js document.getSelection().modify("extend","forward","line")',
// "j": 'js document.getSelection().modify("extend","forward","paragraph")', // not implemented in Firefox
"k": 'js document.getSelection().modify("extend","backward","line")',
"$": 'js document.getSelection().modify("extend","forward","lineboundary")',
"0": 'js document.getSelection().modify("extend","backward","lineboundary")',
"🕷🕷INHERITS🕷🕷": "nmaps",
}