summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr2dev2 <ronak.badhe@gmail.com>2021-08-26 10:15:45 -0700
committerr2dev2 <ronak.badhe@gmail.com>2021-08-26 10:15:45 -0700
commitd97e99d92aac82a2373fec7ea71979f868711dc3 (patch)
treeae485f4c5d5d83764546b0fb9cd25bb647db5a6a
parent1e43e999fb36fffb0df1fd131114390c89a9b68f (diff)
Add support for 'a' key
-rw-r--r--docs-vim.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs-vim.js b/docs-vim.js
index 417c283..0d9338d 100644
--- a/docs-vim.js
+++ b/docs-vim.js
@@ -52,6 +52,11 @@ vim.normal_keydown = function (e) {
e.preventDefault();
e.stopPropagation();
+ if (e.key == "a") {
+ docs.pressKey(docs.codeFromKey("ArrowRight"));
+ e.key = "i";
+ }
+
if (e.key == "i") {
vim.switchToInsertMode();
return true;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback