Vim常用命令:移動 跳轉 到 文檔開頭或末尾


gg:命令將光標移動到文檔開頭

G:命令將光標移動到文檔末尾

 

 

vi編輯器中在命令行模式下輸入G可以直接跳轉到頁面的底部

在命令行模式下輸入1G可以跳轉到頁面的頭部位置

更多在vi中移動編輯位置的命令說明如下:

    • h Move left
    • j Move down
    • k Move up
    • l Move right
    • w Move to next word
    • W Move to next blank delimited word
    • b Move to the beginning of the word
    • B Move to the beginning of blank delimted word
    • e Move to the end of the word
    • E Move to the end of Blank delimited word
    • ( Move a sentence back
    • ) Move a sentence forward
    • { Move a paragraph back
    • } Move a paragraph forward
    • 0 Move to the begining of the line
    • $ Move to the end of the line
    • 1G Move to the first line of the file
    • G Move to the last line of the file
    • nG Move to nth line of the file
    • :n Move to nth line of the file
    • fc Move forward to c
    • Fc Move back to c
    • H Move to top of screen
    • M Move to middle of screen
    • L Move to botton of screen
    • % Move to associated ( ), { }, [ ]


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM