I’m like Ben Orenstein in the sense that I also have a ton of leader commands that I use all the time and I’ve had this idea for a plugin for some time now
I think it would really interesting to be able to somehow track which of the leader commands are being used, when they were used, how often etc.
I started hacking together a small plugin a while ago but its still very buggy and I don’t really have time or energy to improve it at the moment.
The plugin works by wrapping all your leader commands in a function that updates a data structure kept in memory, and then executes the command. When you quit vim this data structure is then appended to a CSV file. You can parse the CSV file and run some statistics on the data.
You can find the repo here: https://github.com/davidpdrsn/vim-leaderboard
I’m posting this here to hopefully spark someone’s interest and headhunt contributers