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>
2024-05-10 03:51:19 +03:00
|
|
|
{"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"}}
|
2024-06-14 19:16:59 +03:00
|
|
|
{"Key":"v"}
|
|
|
|
{"Key":"i"}
|
|
|
|
{"Key":"w"}
|
|
|
|
{"Key":"o"}
|
|
|
|
{"Key":"escape"}
|
|
|
|
{"Key":"`"}
|
|
|
|
{"Key":">"}
|
|
|
|
{"Get":{"state":"Line one\nLine two\nLine three\nLine fouˇr\nLine five\n","mode":"Normal"}}
|
|
|
|
{"Key":"`"}
|
|
|
|
{"Key":"<"}
|
|
|
|
{"Get":{"state":"Line one\nLine two\nLine three\nLine ˇfour\nLine five\n","mode":"Normal"}}
|