I have a vim (well, sed really) find and replace pattern I use for resetting the AUTO_INCREMENT property in mySQL CREATE TABLE statements:
:%s/AUTO_INCREMENT=[0-9]*/AUTO_INCREMENT=1/g
I use this command often, and would like to create a shortcut in vim. I know I will have to edit my .vimrc, but I can't figure out the cmap syntax.
My end goal is to be able to run
:reset-auto-increment
And run the above find and replace globally throughout the file.