Anyway to navigate percentage-wise in vim

vim

I often open large files, looking through logs for finding info. As all lines have timestamp in my case and I am sure of in which part of the whole file the info is present which I am interested in. For example,

  • in the bottom half of the file contents(50% or beyond) or
  • about 10% more towards the end of file or
  • scroll down more 20% of original file.

So, to navigate quickly in this fashion i.e. with percentage-wise – Is there any existing functionality already available in vim?

Best Answer

Sorry for a short answer, but

just type 50%

                                                        *N%*
{count}%                Go to {count} percentage in the file, on the first
                        non-blank in the line |linewise|.  To compute the new 
                        line number this formula is used:
                            ({count} * number-of-lines + 99) / 100
                        See also 'startofline' option.  {not in Vi}
Related Question