0 and $ in vim

This commit is contained in:
Night Kaly 2024-07-04 17:13:19 +01:00
parent 0c4988cd1a
commit cf581afba2
Signed by: night0721
GPG key ID: 957D67B8DB7A119B

View file

@ -230,6 +230,18 @@ void process_key()
break; 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: default:
if (vip.mode == INSERT) { if (vip.mode == INSERT) {
insert_char(c); insert_char(c);