如何在 Vim 中转到特定行?

Gee*_*eek 2 vim

我已经gg在 Vim 中输入到文件的开头。现在我怎样才能直接转到特定的行,例如505

fge*_*fge 8

你可以这样做:

:<linenum>
Run Code Online (Sandbox Code Playgroud)

或者

<linenum>gg
Run Code Online (Sandbox Code Playgroud)

在正常模式下。

此外,G始终处于正常模式,可让您到达文件末尾。