Check out example codes for "go to the end of file in vim". It will help you in understanding the concepts better.

Code Example 1

shift + g

Learn ReactJs, React Native from akashmittal.com