# Basic syntax: :%s/s+$//g # Note, to remove whitespace from the beginning of every line, use: :%s/^ *//g