vim Strip Whitespace от начала каждой линии

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