Background:
My development team decided to move to typescript and one of the style guidelines was to remove all semi-colons and they will probably do so in newer JavaScript files (I know its a bit petty) but yeah, that's what the team has decided.
Unfortunately, they don't use vim and I do because I love it. They don't fuss about what editors you use as long as you keep to the guidelines.
Issues:
After years of programming and hitting ;
at the end of each line, it's hard to break this habit.
Question:
I want to know if there is a nice way in vim to allow me to remove semicolons at the end of each line when I hit save?
Ideally I want to have a way to bind keys to trim all semicolons or when I hit :wq
to save a file.
Is there already a plugin that does this?