Go to the first line OR the last line of the file

(1) 跳到首行

:1 或 gg

(2)跳到最后一行

:$ 或 G 或shift+g(大写。当前若大小写锁定直接按g,未锁定则按shift+g)

原文地址:https://www.cnblogs.com/Berryxiong/p/5632070.html