vim: Add basic mark support (#11507)

Release Notes:
- vim: Added support for buffer-local marks (`'a-'z`) and some builtin
marks `'<`,`'>`,`'[`,`']`, `'{`, `'}` and `^`. Global marks (`'A-'Z`),
and other builtin marks (`'0-'9`, `'(`, `')`, `''`, `'.`, `'"`) are not
yet implemented. (#5122)

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
Zachiah Sawyer
2024-05-09 18:51:19 -06:00
committed by GitHub
co-authored by Conrad Irwin
parent 9cef0ac869
commit 901cb8b3d2
14 changed files with 471 additions and 6 deletions
@@ -0,0 +1,36 @@
{"Put":{"state":"Line one\nLine two\nLine ˇthree\nLine four\nLine five\n"}}
{"Key":"v"}
{"Key":"j"}
{"Key":"escape"}
{"Key":"k"}
{"Key":"k"}
{"Key":"'"}
{"Key":"<"}
{"Get":{"state":"Line one\nLine two\nˇLine three\nLine four\nLine five\n","mode":"Normal"}}
{"Key":"`"}
{"Key":"<"}
{"Get":{"state":"Line one\nLine two\nLine ˇthree\nLine four\nLine five\n","mode":"Normal"}}
{"Key":"'"}
{"Key":">"}
{"Get":{"state":"Line one\nLine two\nLine three\nˇLine four\nLine five\n","mode":"Normal"}}
{"Key":"`"}
{"Key":">"}
{"Get":{"state":"Line one\nLine two\nLine three\nLine ˇfour\nLine five\n","mode":"Normal"}}
{"Key":"g"}
{"Key":"g"}
{"Key":"^"}
{"Key":"j"}
{"Key":"j"}
{"Key":"l"}
{"Key":"l"}
{"Key":"c"}
{"Key":"e"}
{"Key":"k"}
{"Key":"e"}
{"Key":"escape"}
{"Key":"'"}
{"Key":"."}
{"Get":{"state":"Line one\nLine two\nˇLike three\nLine four\nLine five\n","mode":"Normal"}}
{"Key":"`"}
{"Key":"."}
{"Get":{"state":"Line one\nLine two\nLiˇke three\nLine four\nLine five\n","mode":"Normal"}}