vim: Sentence motion (#17425)
Closes #12161 Release Notes: - vim: Added `(` and `)` for sentence motion
This commit is contained in:
parent
01e40928d8
commit
1e09884a22
5 changed files with 276 additions and 2 deletions
32
crates/vim/test_data/test_sentence_backwards.json
Normal file
32
crates/vim/test_data/test_sentence_backwards.json
Normal file
|
@ -0,0 +1,32 @@
|
|||
{"Put":{"state":"one\n\ntwo\nthree\nˇ\nfour"}}
|
||||
{"Key":"("}
|
||||
{"Get":{"state":"one\n\nˇtwo\nthree\n\nfour","mode":"Normal"}}
|
||||
{"Put":{"state":"hello.\n\n\nworˇld."}}
|
||||
{"Key":"("}
|
||||
{"Get":{"state":"hello.\n\n\nˇworld.","mode":"Normal"}}
|
||||
{"Key":"("}
|
||||
{"Get":{"state":"hello.\n\nˇ\nworld.","mode":"Normal"}}
|
||||
{"Key":"("}
|
||||
{"Get":{"state":"ˇhello.\n\n\nworld.","mode":"Normal"}}
|
||||
{"Put":{"state":"hello. worlˇd."}}
|
||||
{"Key":"("}
|
||||
{"Get":{"state":"hello. ˇworld.","mode":"Normal"}}
|
||||
{"Key":"("}
|
||||
{"Get":{"state":"ˇhello. world.","mode":"Normal"}}
|
||||
{"Put":{"state":". helˇlo."}}
|
||||
{"Key":"("}
|
||||
{"Get":{"state":". ˇhello.","mode":"Normal"}}
|
||||
{"Key":"("}
|
||||
{"Get":{"state":". ˇhello.","mode":"Normal"}}
|
||||
{"Put":{"state":"{\n hello_world();\nˇ}"}}
|
||||
{"Key":"("}
|
||||
{"Get":{"state":"ˇ{\n hello_world();\n}","mode":"Normal"}}
|
||||
{"Put":{"state":"Hello! World..?\n\n\tHello! World... ˇ"}}
|
||||
{"Key":"("}
|
||||
{"Get":{"state":"Hello! World..?\n\n\tHello! ˇWorld... ","mode":"Normal"}}
|
||||
{"Key":"("}
|
||||
{"Get":{"state":"Hello! World..?\n\n\tˇHello! World... ","mode":"Normal"}}
|
||||
{"Key":"("}
|
||||
{"Get":{"state":"Hello! World..?\nˇ\n\tHello! World... ","mode":"Normal"}}
|
||||
{"Key":"("}
|
||||
{"Get":{"state":"Hello! ˇWorld..?\n\n\tHello! World... ","mode":"Normal"}}
|
8
crates/vim/test_data/test_sentence_forwards.json
Normal file
8
crates/vim/test_data/test_sentence_forwards.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{"Put":{"state":"helˇlo.\n\n\nworld."}}
|
||||
{"Key":")"}
|
||||
{"Get":{"state":"hello.\nˇ\n\nworld.","mode":"Normal"}}
|
||||
{"Key":")"}
|
||||
{"Get":{"state":"hello.\n\n\nˇworld.","mode":"Normal"}}
|
||||
{"Key":")"}
|
||||
{"Get":{"state":"hello.\n\n\nworldˇ.","mode":"Normal"}}
|
||||
{"Put":{"state":"helˇlo.\n\n\nworld."}}
|
Loading…
Add table
Add a link
Reference in a new issue