Commit d6eeff4
committed
feat: add g_ motion (move to last non-blank character)
Implements the g_ motion from vim, which moves to the last
non-whitespace character on the line. Supports counts (e.g. 2g_
moves to the last non-blank of the next line) and works correctly
with operators (dg_ deletes to last non-blank, preserving trailing
whitespace).1 parent c912733 commit d6eeff4
2 files changed
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| |||
2537 | 2538 | | |
2538 | 2539 | | |
2539 | 2540 | | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
2540 | 2547 | | |
2541 | 2548 | | |
2542 | 2549 | | |
| |||
4018 | 4025 | | |
4019 | 4026 | | |
4020 | 4027 | | |
| 4028 | + | |
| 4029 | + | |
| 4030 | + | |
| 4031 | + | |
| 4032 | + | |
| 4033 | + | |
| 4034 | + | |
| 4035 | + | |
| 4036 | + | |
4021 | 4037 | | |
4022 | 4038 | | |
4023 | 4039 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
544 | 562 | | |
545 | 563 | | |
546 | 564 | | |
| |||
0 commit comments