Click to See Complete Forum and Search --> : go to X character with vim


jdvilla
01-11-2005, 06:33 PM
In vim, is there a way to go to a specific character in a file like there is for going going to a specific line?

Here's the scenario, PostgreSQL is returning an error saying

ERROR: syntax error at or near "1" at character 88946

I don't want to count to that character...

bwkaz
01-11-2005, 09:20 PM
head -c 88946 file | tail -c 100

to print that character out (it'll be the last one in the stuff that got printed).

Then search for the stuff around it.

(At least, that's the only thing I can think of...)