<div dir="ltr">I've been using toybox vi as a makeshift "less" lately. This patch<br>contains all the fixes I've made...<br><br>$ should go to the last character before the newline, not the newline.<br><br>Fix ^b and ^f, and ^e and ^y (which was mistakenly ^u before, which is<br>also a movement key, but half of ^d/^u, neither of which we actually<br>implement, and neither of which I've ever used myself --- I might have<br>large hands, but they're not _that_ large).<br><br>Fix the display of lines longer than 1024 characters.<br><br>Fix the display of the "~"s after the end of the file, and use VT100 dim<br>to make it a bit more obvious that they're not actually part of the<br>file. Also be a bit more consistent about \033 which is the most common<br>way to write \x1b in toybox.<br><br>Don't show the status while in ex mode.<br><br>Make what the status is showing a little less unclear by adding a "C"<br>for the byte offset and file size, and add a percentage (albeit one<br>based on bytes rather than lines).<br><br>Fix the flickering seen on updates with the usual stupid trick of<br>setting a large buffer.<br><br>Handle SIGWINCH.<br><br>Add support for Home/End/PageUp/PageDown.<br><br>Remove a bit of duplication around calls to draw_page().<br>---<br> toys/pending/vi.c | 147 +++++++++++++++++++++++++++++-----------------<br> 1 file changed, 92 insertions(+), 55 deletions(-)<br></div>