Introduction
Introduction Statistics Contact Development Disclaimer Help
tvi: ^G command - neatvi - [fork] simple vi-type editor with UTF-8 support
git clone git://src.adamsgaard.dk/neatvi
Log
Files
Refs
README
---
commit d5fdad85ce7861cb976204da853df15ad14b5a38
parent 7cbcaf73c5c8cc39c55bd675672e26faa064e97f
Author: Ali Gholami Rudi <[email protected]>
Date: Wed, 13 May 2015 09:28:13 +0430
vi: ^G command
Diffstat:
M vi.c | 11 +++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/vi.c b/vi.c
t@@ -678,6 +678,14 @@ static int vi_scrollbackward(int cnt)
return 0;
}
+static void vi_status(void)
+{
+ char stat[128];
+ sprintf(stat, "[%s] %d lines, %d,%d\n",
+ xpath[0] ? xpath : "unnamed", lbuf_len(xb), xrow + 1, xcol + 1…
+ led_print(stat, xrows);
+}
+
static void vi(void)
{
int mark;
t@@ -735,6 +743,9 @@ static void vi(void)
lbuf_redo(xb);
redraw = 1;
break;
+ case TERMCTRL('g'):
+ vi_status();
+ break;
case ':':
term_pos(xrows, led_pos(":", 0));
term_kill();
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.