How do I delete the last character in each line using vim April 23, 2023 by Tarik You could use :%s/.\{1}$// to delete 1 character off the end of each line.