vim jump to specified line

Type in edit mode

ngg or nG

n is the specified number of lines (such as 25)

25gg or 25G Jump to line 25.

Enter the line number n in command mode

: n

Jump if you want to open the file

vim +n FileName

View the line where the cursor is of course

Ctrl+g

 

Skip to last G

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326487754&siteId=291194637