How do I replace all the occurrences of multiple consecutive space

characters to a single space? You can use the following command to replace all the occurrences of multiple consecutive space characters to a single space:

    :%s/ \{2,}/ /g

Alternatively use:

    :%s/  \+/ /g

Read free Software Algorithms and Computer Science Books by CodeAhoy Learn.

Introduction to Recursion and Backtracking

Sorting Algorithms

Introduction to C Programming Language

And More...

Speak Your Mind