1_hxoq
Last Updated: June 24, 2016
·
41
· ryrych

Traversing through changes in Vim

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
Filed Under

Awesome Job

Frontend Web Developer for Games
·
Leamington Spa (United Kingdom)
·
Full Time