Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

vim strip trailing whitespace

# Basic syntax:
:%s/s+$//g
# Note, to remove whitespace from the beginning of every line, use:
:%s/^ *//g
Source by vi.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #vim #strip #trailing #whitespace
ADD COMMENT
Topic
Name
7+7 =