Friday, July 6, 2012

Re: How to move forward 'x' characters, crossing newlines

On 07/06/12 15:51, Roy Fulbright wrote:
> I'm tracking down an error message that says the error is at
> character 2310 in my input JSON file, and I need to know how to
> move the cursor forward 2310 positions including newlines. I'm
> sure it's something simple, but I cannot find anything in help.

For this particular use-case, I think you want the "go" command:

:help go

so you'd type

2310go

It's a little trickier to move forward/backward by a given number of
bytes from an arbitrary starting location, but as long as you just
want to get to the Nth byte in the file, "go" should do the job.

-tim



--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: