0 and $ in vim
This commit is contained in:
parent
0c4988cd1a
commit
cf581afba2
1 changed files with 12 additions and 0 deletions
12
src/io.c
12
src/io.c
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue