^M at the end of every line in Vim November 23, 2022 by Tarik As a command, type :%s/^M$// (To get ^M, press ^V ^M, where ^ is CTRL on most keyboards)