vim S (#2929)
Release Notes: - vim: Add `S` to substitute line ([#1897](https://github.com/zed-industries/community/issues/1897)).
This commit is contained in:
commit
c2c04616b4
5 changed files with 129 additions and 11 deletions
29
crates/vim/test_data/test_substitute_line.json
Normal file
29
crates/vim/test_data/test_substitute_line.json
Normal file
|
@ -0,0 +1,29 @@
|
|||
{"Put":{"state":"The quick brown\nfox juˇmps over\nthe lazy dog\n"}}
|
||||
{"Key":"shift-s"}
|
||||
{"Key":"o"}
|
||||
{"Get":{"state":"The quick brown\noˇ\nthe lazy dog\n","mode":"Insert"}}
|
||||
{"Put":{"state":"The quick brown\nfox juˇmps over\nthe lazy dog\n"}}
|
||||
{"Key":"v"}
|
||||
{"Key":"k"}
|
||||
{"Key":"shift-s"}
|
||||
{"Key":"o"}
|
||||
{"Get":{"state":"oˇ\nthe lazy dog\n","mode":"Insert"}}
|
||||
{"Put":{"state":"The quick brown\nfox juˇmps over\nthe lazy dog\n"}}
|
||||
{"Key":"ctrl-v"}
|
||||
{"Key":"j"}
|
||||
{"Key":"shift-s"}
|
||||
{"Key":"o"}
|
||||
{"Get":{"state":"The quick brown\noˇ\n","mode":"Insert"}}
|
||||
{"Put":{"state":"The quick brown\nfox juˇmps over\nthe lazy dog\n"}}
|
||||
{"Key":"v"}
|
||||
{"Key":"$"}
|
||||
{"Key":"shift-s"}
|
||||
{"Key":"o"}
|
||||
{"Get":{"state":"The quick brown\noˇ\nthe lazy dog\n","mode":"Insert"}}
|
||||
{"SetOption":{"value":"shiftwidth=4"}}
|
||||
{"Put":{"state":"The quick brown\nfox juˇmps over\nthe lazy dog\n"}}
|
||||
{"Key":">"}
|
||||
{"Key":">"}
|
||||
{"Key":"shift-s"}
|
||||
{"Key":"o"}
|
||||
{"Get":{"state":"The quick brown\n oˇ\nthe lazy dog\n","mode":"Insert"}}
|
Loading…
Add table
Add a link
Reference in a new issue