Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to jump to the end of the looong line?

All

have file with long data lines, which on screen looks like

1    A0    B0    C0    D0    E0    F0
     A1    B1    C1    D1    E1    F1
     A2    B2    C2    D2    E2    F2
2    G0    H0    I0    J0    K0    L0
     G1    H1    I1    J1    K1    L1
     ....

due to wrapping.

Cursor located at A0. I would like to jump to the end of line #1, so cursor shall be at or after F2. If I press End, I'll be at F0, which is nice to have but not what I would expect.

Is there any good way to jump to the EOL?

like image 255
Severin Pappadeux Avatar asked Aug 22 '16 19:08

Severin Pappadeux


2 Answers

After some looking around, I've got the answer - single End key will move you to logical EOL, while hitting second End key in succession will move cursor to the physical EOL.

Same for Home key - single to logical, twice to physical

like image 50
Severin Pappadeux Avatar answered Oct 07 '22 08:10

Severin Pappadeux


In vim: $ in command mode takes you to the end of the line. The pipe symbol (|) is also handy for getting you to a specific column number; e.g. 30| gets you to column number 30.

like image 22
John Ko Avatar answered Oct 07 '22 08:10

John Ko