vim: Further improve ~ handling
Now works with Visual{line} mode, collapses selections like nvim, and doesn't fall off the end of the line.
This commit is contained in:
parent
e36d5f41c8
commit
0d18b72cf8
3 changed files with 99 additions and 31 deletions
18
crates/vim/test_data/test_change_case.json
Normal file
18
crates/vim/test_data/test_change_case.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
{"Put":{"state":"ˇabC\n"}}
|
||||
{"Key":"~"}
|
||||
{"Get":{"state":"AˇbC\n","mode":"Normal"}}
|
||||
{"Key":"2"}
|
||||
{"Key":"~"}
|
||||
{"Get":{"state":"ABˇc\n","mode":"Normal"}}
|
||||
{"Put":{"state":"a😀C«dÉ1*fˇ»\n"}}
|
||||
{"Key":"~"}
|
||||
{"Get":{"state":"a😀CˇDé1*F\n","mode":"Normal"}}
|
||||
{"Key":"~"}
|
||||
{"Put":{"state":"aˇC😀é1*F\n"}}
|
||||
{"Key":"4"}
|
||||
{"Key":"~"}
|
||||
{"Get":{"state":"ac😀É1ˇ*F\n","mode":"Normal"}}
|
||||
{"Put":{"state":"abˇC\n"}}
|
||||
{"Key":"shift-v"}
|
||||
{"Key":"~"}
|
||||
{"Get":{"state":"ˇABc\n","mode":"Normal"}}
|
Loading…
Add table
Add a link
Reference in a new issue