vim: Sentence motion (#17425)

Closes #12161

Release Notes:

- vim: Added `(` and `)` for sentence motion
This commit is contained in:
Conrad Irwin 2024-09-05 11:18:52 -06:00 committed by GitHub
parent 01e40928d8
commit 1e09884a22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 276 additions and 2 deletions

View 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"}}

View 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."}}