vim中跳到第一行和最后一行

底线命令模式

:0或:1跳到文件第一行

:$跳到文件最后一行

命令模式

gg跳到第一行

shift+g跳到文件最后一行

原文地址:https://www.cnblogs.com/liuys635/p/10831196.html