commit cf581afba23c239520a53bc4036a0b0a2c44b7eb parent 0c4988cd1abbc7702c0164e307f834ade46f91da Author: night0721 <[email protected]> Date: Thu, 4 Jul 2024 17:13:19 +0100 0 and $ in vim Diffstat:
M | src/io.c | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/io.c b/src/io.c @@ -230,6 +230,18 @@ void process_key() break; } + case '0': /* PASSTHROUGH */ + if (vip.mode == NORMAL) { + vip.cx = 0; + break; + } + + case '$': /* PASSTHROUGH */ + if (vip.mode == NORMAL) { + vip.cx = vip.row[vip.cy].size; + break; + } + default: if (vip.mode == INSERT) { insert_char(c);