Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the command to skip to the first and last lines in vim

Shulou Source: shulou.com Published: 2022-06-02 09:25:05 10月26日 Update

This article mainly introduces "what is the command to skip to the first line and the last line in vim". In daily operation, I believe that many people have doubts about the command to skip to the first line and the last line in vim. The editor consulted all kinds of materials and sorted out a simple and useful method of operation. I hope it will be helpful to answer the doubt of "what is the command to skip to the first line and the last line in vim?" Next, please follow the editor to study!

Bottom line command mode

: 0 or: 1 skip to the first line of the file

: $skip to the last line of the file

Command mode

Gg jumps to the first line

Shift+g skips to the last line of the file

At this point, the study on "what is the command to skip to the first line and the last line in vim" is over. I hope I can solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: One line commands learning files more patterns help practical next bottom line articles methods theories knowledge articles websites materials follow questions easy to use Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Tech Info Microsoft Linux Shulou Information