Another pro tip! There is a shortcut for :wq — :x
Another pro tip for regex:
I'll use something similar when I rebase (to squash) a series of commits in a git repo (vim's my editor for Git). If when presented with the list of commits you do:
You'll squash all commits into a single commit in one fell swoop.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.