Christian Brabandt
b5f6fe9ca2
patch 9.0.1753: can't move to last non-blank char
...
Problem: can't move to last non-blank char
Solution: Make g<end> behave like that
Make it possible to move to last non-blank char on a line
We can distinguish between g0 and g^ to move to the very first character
and the first non-blank char.
And while we can move to the last screen char, we cannot go to the last
non-blank screen char.
Since I think g$ is the more widely used and known movement command (and
g<end> is synonymous to it) change the behaviour of g<end> to move to
last non-screen char instead and don't have this be the same command as
the g$ command anymore.
If you want to keep the old behaviour, you can use:
```
nnoremap g<end> g$
```
Add a test to verify the behaviour.
closes : #12593
Signed-off-by: Christian Brabandt <cb@256bit.org >
2023-08-19 15:55:35 +02:00
..
2022-06-28 13:44:46 +01:00
2023-06-10 21:40:39 +01:00
2023-08-17 22:55:25 +02:00
2023-04-22 22:40:14 +01:00
2022-12-06 18:20:10 +00:00
2023-06-10 21:40:39 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-09-27 17:30:34 +01:00
2023-04-22 22:40:14 +01:00
2023-04-22 22:40:14 +01:00
2022-07-30 12:03:16 +01:00
2020-01-21 22:13:42 +01:00
2023-05-14 18:50:25 +01:00
2023-06-10 21:40:39 +01:00
2020-01-27 22:47:09 +01:00
2018-07-21 05:56:22 +02:00
2020-05-31 14:25:22 +02:00
2020-05-31 14:25:22 +02:00
2018-07-07 23:21:31 +02:00
2022-06-28 13:44:46 +01:00
2023-08-09 17:39:05 +02:00
2023-04-22 22:40:14 +01:00
2022-06-28 13:44:46 +01:00
2023-02-02 13:59:48 +00:00
2023-02-02 13:59:48 +00:00
2021-06-27 15:18:56 +02:00
2022-02-26 12:25:45 +00:00
2022-10-28 20:47:54 +01:00
2022-07-25 15:42:07 +01:00
2023-02-20 20:44:55 +00:00
2022-07-25 15:42:07 +01:00
2023-05-14 18:50:25 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-12-06 18:20:10 +00:00
2023-02-20 20:44:55 +00:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-10-08 17:15:28 +01:00
2023-05-14 18:50:25 +01:00
2023-02-20 20:44:55 +00:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-10-16 13:11:12 +01:00
2023-02-20 20:44:55 +00:00
2023-02-20 20:44:55 +00:00
2023-08-13 10:33:05 +02:00
2022-12-04 20:13:24 +00:00
2020-05-26 21:20:45 +02:00
2023-06-10 21:40:39 +01:00
2022-06-28 13:44:46 +01:00
2023-06-10 21:40:39 +01:00
2022-09-18 13:04:22 +01:00
2023-08-19 15:55:35 +02:00
2022-06-28 13:44:46 +01:00
2023-08-13 19:43:42 +02:00
2023-02-20 20:44:55 +00:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-11-23 23:46:31 +00:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-12-06 18:20:10 +00:00
2023-02-20 20:44:55 +00:00
2022-09-18 13:04:22 +01:00
2023-02-20 20:44:55 +00:00
2023-02-20 20:44:55 +00:00
2022-06-28 13:44:46 +01:00
2020-01-14 19:29:13 +01:00
2023-05-14 18:50:25 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-11-09 21:21:04 +00:00
2022-06-28 13:44:46 +01:00
2023-04-22 22:40:14 +01:00
2023-02-20 20:44:55 +00:00
2022-10-03 18:04:35 +01:00
2023-02-20 20:44:55 +00:00
2022-12-31 15:30:45 +00:00
2022-06-28 13:44:46 +01:00
2023-04-22 22:40:14 +01:00
2023-02-20 20:44:55 +00:00
2023-06-10 21:40:39 +01:00
2022-10-16 13:11:12 +01:00
2022-06-28 13:44:46 +01:00
2022-10-28 20:47:54 +01:00
2023-02-27 15:49:53 +00:00
2023-06-10 21:40:39 +01:00
2023-04-22 22:40:14 +01:00
2023-06-10 21:40:39 +01:00
2023-05-14 18:50:25 +01:00
2022-08-25 16:02:23 +01:00
2023-08-13 19:43:42 +02:00
2023-02-20 20:44:55 +00:00
2023-02-02 13:59:48 +00:00
2023-06-28 23:27:28 +01:00
2017-11-28 14:19:07 +01:00
2023-06-10 21:40:39 +01:00
2023-05-14 18:50:25 +01:00
2023-08-10 06:43:14 +02:00
2023-08-11 22:53:39 +02:00
2023-08-13 10:33:05 +02:00
2023-08-10 06:19:18 +02:00
2023-06-10 21:40:39 +01:00
2023-05-14 18:50:25 +01:00
2023-02-20 20:44:55 +00:00
2023-04-22 22:40:14 +01:00
2022-06-28 13:44:46 +01:00
2023-08-10 06:43:14 +02:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-11-23 23:46:31 +00:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2023-02-20 20:44:55 +00:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2023-08-11 22:53:39 +02:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-10-16 13:11:12 +01:00
2022-06-28 13:44:46 +01:00
2022-06-28 13:44:46 +01:00
2022-12-31 15:30:45 +00:00
2022-06-28 13:44:46 +01:00
2022-11-09 21:21:04 +00:00
2022-06-28 13:44:46 +01:00
2023-08-11 19:30:27 +02:00
2023-02-20 20:44:55 +00:00
2023-08-13 10:33:05 +02:00
2022-06-28 13:44:46 +01:00
2023-06-10 21:40:39 +01:00
2023-04-22 22:40:14 +01:00
2020-07-26 17:00:44 +02:00
2020-07-26 17:00:44 +02:00
2020-07-26 17:00:44 +02:00
2020-07-26 17:00:44 +02:00
2020-07-26 17:00:44 +02:00
2020-07-26 17:00:44 +02:00
2022-02-20 19:48:20 +00:00
2020-07-26 17:00:44 +02:00
2020-07-26 17:00:44 +02:00
2020-07-26 17:00:44 +02:00
2020-07-26 17:00:44 +02:00
2022-01-23 12:07:04 +00:00
2022-01-23 12:07:04 +00:00
2018-07-15 20:20:18 +02:00
2018-07-15 20:20:18 +02:00
2020-01-27 22:47:09 +01:00
2022-01-16 14:46:06 +00:00
2020-05-31 14:25:22 +02:00
2020-05-31 14:25:22 +02:00
2021-06-13 19:02:49 +02:00
2021-06-13 19:02:49 +02:00
2018-07-15 20:20:18 +02:00
2018-07-15 20:20:18 +02:00
2020-01-27 22:47:09 +01:00
2018-07-21 05:56:22 +02:00
2020-05-31 14:25:22 +02:00
2020-05-31 14:25:22 +02:00
2023-04-22 22:40:14 +01:00
2023-04-22 22:40:14 +01:00
2022-12-06 18:20:10 +00:00
2022-12-07 09:17:59 +00:00
2022-06-28 13:44:46 +01:00
2021-12-05 21:54:04 +00:00
2021-12-05 21:54:04 +00:00
2020-01-27 22:47:09 +01:00
2018-11-04 14:45:49 +01:00
2022-01-16 14:46:06 +00:00
2023-08-13 19:21:38 +02:00
2022-07-01 18:45:04 +01:00