Text Post

a few vim shortcuts

A few handy vim shortcuts concerning movement :

gf : edit the file whose name is under or after the cursor

gd : when the cursor is on a local variable or function, this command will jump to its declaration

' ' (two single quotes) : return to the line where the cursor was before the latest jump

gi : return to insert mode where you inserted text the last time

CTRL-omove to previous position you were at

CTRL -imove to more recent position you were at

CTRL-w CTRL-w : move between viewports

CTRL-w CTRL-x : swap viewports

Notes

  1. progfu reblogged this from groenewege and added:
    gf : edit the file whose name is under or after the cursor gd : when the cursor is on a local variable or function, this...
  2. narshlob reblogged this from groenewege
  3. 1bag reblogged this from groenewege
  4. groenewege posted this