The :changes command listed the change history of current file. However when I work with multiple buffers, I want to list changes to all the buffers I opened in current vim-server, like the behavior of tags and jumplist. Is there such facility available?
Asked
Active
Viewed 485 times
1
Eric Sun
- 153
- 2
1 Answers
1
No, if you're looking for a combined change list; unlike :jumps, changes are not global, but local to each buffer.
What you can do is iterate over all open buffers:
:bufdo changes
Ingo Karkat
- 17,819
- 1
- 45
- 61
-
This command can only show the changes, but don't provide navigation command like
g,andg;. Wondering if there is some plugin that can jump between all these changes – Eric Sun Nov 20 '18 at 11:42 -
I don't think so, because obtaining all changes via
:changesis costly, and then would require parsing and merging, which is not easy to implement. – Ingo Karkat Nov 20 '18 at 12:56
g:c. When you press it, it should populate the quickfix list with the changelists of all the existing buffers. It requires at least the patch 8.0.1514, for thegetchangelist()function to be available. – user938271 Nov 20 '18 at 13:06