Skip to main content

Timeline for Go to X bytes from here

Current License: CC BY-SA 3.0

13 events
when toggle format what by license comment
S Aug 2, 2016 at 21:07 history suggested Lekensteyn CC BY-SA 3.0
add missing endif
Aug 2, 2016 at 21:06 review Suggested edits
S Aug 2, 2016 at 21:07
Jul 12, 2015 at 22:02 history edited Rob W CC BY-SA 3.0
Add missing -1.
Jul 12, 2015 at 21:52 comment added VanLaser You seem to have done some real digging there (going to the source) - congratulations!
Jul 12, 2015 at 21:25 comment added Rob W @VanLaser I've updated my answer with a final version. It turns out that your original line counting method was fine, but there was a bug in Vim. I've submitted a patch which got accepted, so in the latest version of Vim, your answer will also work as intended.
Jul 12, 2015 at 21:22 history edited Rob W CC BY-SA 3.0
My patch is accepted, the bug in Vim is fixed!
Jul 11, 2015 at 23:00 history edited Rob W CC BY-SA 3.0
The previous byte counting method was also incorrect. Updated the answer based on source code analysis (see also https://vi.stackexchange.com/a/3911/2720)
Jul 10, 2015 at 16:56 vote accept Rob W
Jul 10, 2015 at 16:36 history edited Rob W CC BY-SA 3.0
Add support for different binary modes
Jul 6, 2015 at 20:55 comment added VanLaser Thanks for the answer (and good luck)! The combined version is here, if interested: pastebin.com/7sVyiA85
Jul 6, 2015 at 20:44 comment added Rob W @VanLaser I was reading the raw contents of a PDF file, in order to get a better understanding of the PDF file format. A PDF file consists of many objects, and many of these objects have a length prefix. Being able to jump X bytes ahead was useful for debugging. And before you ask why I'm editing raw PDF files: I am developing a new feature for PDF.js which requires a deeper knowledge of the PDF file format.
Jul 6, 2015 at 20:38 comment added VanLaser One question, where exactly do you need this functionality? (BTW I ended up combining your solution with reusing the previous count if none is provided).
Jul 6, 2015 at 17:38 history answered Rob W CC BY-SA 3.0