vim I don’t use vim. I use the better vim. Syntax Highlighting set filetype=html Movements Converting bunch of spaces into new line :%s/\s\s+/^M/g (1) 1 To type ^M, hit CTRL+V then CTRL+M. This will turn the example below NixOS Arch Linux Debian Mint Ubuntu ParrotOS Tumbleweed Gentoo into NixOS Arch Linux Debian Mint Ubuntu ParrotOS Tumbleweed Gentoo