Here’s a quick tip on how to replace all spaces with a dot in vim:

:%s/[ \t]/./

And here’s how to remove all trailing spaces at the end of each line:

:%s/\s\+$//

Have any more vim quick tips? Let’s hear them in the comments.

Popularity: 1% [?]

Filed under: HowToLinux

Like this post? Subscribe to my RSS feed and get loads more!