vim: Support for q and @ (#13761)

Fixes: #1504

Release Notes:

- vim: Support for macros (`q` and `@`) to record and replay (#1506,
#4448)
This commit is contained in:
Conrad Irwin 2024-07-03 09:03:39 -06:00 committed by GitHub
parent dceb0827e8
commit 3348c3ab4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 491 additions and 316 deletions

View file

@ -0,0 +1,14 @@
{"Put":{"state":"ˇhello world"}}
{"Key":"q"}
{"Key":"w"}
{"Key":"c"}
{"Key":"w"}
{"Key":"j"}
{"Key":"escape"}
{"Key":"q"}
{"Get":{"state":"ˇj world","mode":"Normal"}}
{"Key":"2"}
{"Key":"l"}
{"Key":"@"}
{"Key":"w"}
{"Get":{"state":"j ˇj","mode":"Normal"}}

View file

@ -0,0 +1,16 @@
{"Put":{"state":"ˇhello world!!"}}
{"Key":"q"}
{"Key":"a"}
{"Key":"v"}
{"Key":"3"}
{"Key":"l"}
{"Key":"s"}
{"Key":"0"}
{"Key":"escape"}
{"Key":"l"}
{"Key":"q"}
{"Get":{"state":"0ˇo world!!","mode":"Normal"}}
{"Key":"2"}
{"Key":"@"}
{"Key":"a"}
{"Get":{"state":"000ˇ!","mode":"Normal"}}

View file

@ -0,0 +1,17 @@
{"Put":{"state":"ˇhello world"}}
{"Key":"q"}
{"Key":"a"}
{"Key":"r"}
{"Key":"a"}
{"Key":"l"}
{"Key":"r"}
{"Key":"b"}
{"Key":"l"}
{"Key":"q"}
{"Get":{"state":"abˇllo world","mode":"Normal"}}
{"Key":"."}
{"Get":{"state":"abˇblo world","mode":"Normal"}}
{"Key":"shift-q"}
{"Get":{"state":"ababˇo world","mode":"Normal"}}
{"Key":"."}
{"Get":{"state":"ababˇb world","mode":"Normal"}}

View file

@ -0,0 +1,35 @@
{"Put":{"state":"ˇhello world"}}
{"Key":"q"}
{"Key":"z"}
{"Key":"r"}
{"Key":"a"}
{"Key":"l"}
{"Key":"q"}
{"Get":{"state":"aˇello world","mode":"Normal"}}
{"Key":"q"}
{"Key":"b"}
{"Key":"@"}
{"Key":"z"}
{"Key":"@"}
{"Key":"z"}
{"Key":"q"}
{"Get":{"state":"aaaˇlo world","mode":"Normal"}}
{"Key":"@"}
{"Key":"@"}
{"Get":{"state":"aaaaˇo world","mode":"Normal"}}
{"Key":"@"}
{"Key":"b"}
{"Get":{"state":"aaaaaaˇworld","mode":"Normal"}}
{"Key":"@"}
{"Key":"@"}
{"Get":{"state":"aaaaaaaˇorld","mode":"Normal"}}
{"Key":"q"}
{"Key":"z"}
{"Key":"r"}
{"Key":"b"}
{"Key":"l"}
{"Key":"q"}
{"Get":{"state":"aaaaaaabˇrld","mode":"Normal"}}
{"Key":"@"}
{"Key":"b"}
{"Get":{"state":"aaaaaaabbbˇd","mode":"Normal"}}

View file

@ -0,0 +1,14 @@
{"Put":{"state":"ˇhello world"}}
{"Key":"r"}
{"Key":"o"}
{"Key":"q"}
{"Key":"w"}
{"Key":"."}
{"Key":"q"}
{"Get":{"state":"ˇoello world","mode":"Normal"}}
{"Key":"d"}
{"Key":"l"}
{"Get":{"state":"ˇello world","mode":"Normal"}}
{"Key":"@"}
{"Key":"w"}
{"Get":{"state":"ˇllo world","mode":"Normal"}}