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-o : move to previous position you were at
CTRL -i : move to more recent position you were at
CTRL-w CTRL-w : move between viewports
CTRL-w CTRL-x : swap viewports
Notes
-
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...
-
progfu likes this
-
newsdisrepai likes this
-
narshlob reblogged this from groenewege
-
arnolog likes this
-
1bag reblogged this from groenewege
-
groenewege posted this
