Wiki

by yszheda

View project onGitHub

Tip 56: Traverse the Change List

Return to the top: <<Practical Vim>>

References

# If you open the file in vim,
# then you can \"ayy@a the next line to execute the vim command: 
:h changelist
  • :changes: inspect the contents of change list
  • g,: traverse forward through the change list
  • g;: traverse backward through the change list

Marks for the Last Change

  • `.: references the position of the last change

References

# If you open the file in vim,
# then you can \"ayy@a the next line to execute the vim command: 
:h `.
  • `^: tracks the position of the cursor the last time that Insert mode was stopped

References

# If you open the file in vim,
# then you can \"ayy@a the next line to execute the vim command: 
:h `^
  • gi: return to the latest Insert mode position.

References

# If you open the file in vim,
# then you can \"ayy@a the next line to execute the vim command: 
:h gi