How to scroll down to last line in Vim?
vim
Solution
Alternative motions
Note that you can prefix motions like `j` or Ctrl + F with a number (multiplier), called `[count]` in the (excellent) `:help`. That gets you around a large buffer fast.
Another beneficial, but less known command is `N%`, to jump to a percentage in the file, e.g. the middle with `50%`.
Best solution
But your particular problem is indeed best addressed by `G`, or `:$` followed by Enter.
Additional help
With such a large file, navigation in Vim may be sluggish. Have a look at the LargeFile - Edit large files quickly plugin, which changes some options to speed up Vim.
Tips
If you're new to Vim (and its navigation and editing commands), you should spend 30 minutes on the `vimtutor` that comes with it (see `:help vimtutor` inside Vim). Then, there are several good resources, cheatsheets, and vi / Vim tutorials out there on the net. http://vimcasts.org/ has several short entertaining episodes that go beyond the basics.
Learn how to look up commands and navigate the built-in `:help`; it is comprehensive and offers many tips. You won't learn Vim as fast as other editors, but if you commit to continuous learning, it'll prove a very powerful and efficient editor.
Problem
My Rails `production.log` has 2000000 lines. How can I scroll down to the last line with Vim? I scroll down with Ctrl+F and Ctrl+D but it's not fast enough.