Traversing through changes in Vim
:changes
lists all modification you made in a buffer.
change line col text
2 4 22 feature-img: "img/clock.jpg"
1 20 0
> 0 27 0 ## Working smarter, not harder [this has been edited]
To jump to previous change press <kbd>g;</kbd>. To traverse forward press
<kbd>g,</kbd> instead.
Vim also records ‘change marks’. Press:
- <kbd>`.</kbd> to jump to most recent change
- <kbd>`^</kbd> to jump to were you last left insert mode
- <kbd>gi</kbd> as above, but enters the insert mode
Written by Wojtek Ryrych
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#