# Basic syntax: # Replace two or more spaces with one :%s/ {2,}/ /g # Note, you can replace one or more spaces with tab with: :%s/ {1,}/ /g # <tab> shows up as ^I in Vim