VimAddin icon indicating copy to clipboard operation
VimAddin copied to clipboard

1G goto line 1 fails, but any other number 2G etc works fine

Open rahvee opened this issue 10 years ago • 1 comments

If you hit 1G, it should go to line 1, but it goes to the end of the file.

If you hit any other number, 2G, 3G, etc, it works fine.

rahvee avatar Mar 08 '15 13:03 rahvee

Yes, this is an issue. It has to do with the way the count is recorded. Basically, the count is always 1 by default if you don't type in a number before the command, so in the current code, there isn't a way to disambiguate from, say, G and 1G.

The workaround for this particular bug is to use gg, which should take you to the top of the file.

alextsui05 avatar Mar 08 '15 14:03 alextsui05