Vim Strip Trailing Whitespace
# Basic syntax:
:%s/\s\+$//g
# Note, to remove whitespace from the beginning of every line, use:
:%s/^ *//g
Charles-Alexandre Roy
# Basic syntax:
:%s/\s\+$//g
# Note, to remove whitespace from the beginning of every line, use:
:%s/^ *//g