Try
28345go
Please bottom post! Its the preferred style here in vim_use.
So, with that out of the way... why not try
set ww=b,s,<,>,[,]
and then try your 750l .
Regards,
Chip Campbell
It isn't obvious, because AFAICT there's no pattern atom to search for
the nth byte throughout the file. You might try the following (untested):
function SeekToByte(byte)
let l = byte2line(a:byte)
let b = a:byte - line2byte(l) + 1
call cursor(l, b)
endfunction
I think the final cursor will be wrong (but in the right line) if the
line includes, before the desired position, characters which don't
occupy one screen cell per byte. These includes hard tabs (1 to
'tabstop' screen cells per byte), control characters (0x00 to 0x1F other
than tabs and ends-of-lines, 2 screen cells per byte), and possibly some
other characters depending on 'encoding' (e.g., anything above U+007F if
'encoding' is UTF-8). I didn't find exactly how to get the column right
in such a case.
Best regards,
Tony.
--
The difference between science and the fuzzy subjects is that science
requires reasoning while those other subjects merely require
scholarship.
-- Robert Heinlein
D'uh! And I tried to reinvent the wheel. Thanks for telling us!
I really should have noticed that there was a +byte_offset item in my
":version" listing.
Best regards,
Tony.
--
NAPOLEON: What shall we do with this soldier, Giuseppe? Everything he
says is wrong.
GIUSEPPE: Make him a general, Excellency, and then everything he says
will be right.
-- G. B. Shaw, "The Man of Destiny"