Joined December 2012
·
Posted to
Remove all whitespace from a directory
over 1 year
ago
:silent argdo %s/\s+$//e | w
this is broken it removes plus characters (+) from the end of a line when there is whitespace before the plus but not after it.
it should be:
:silent argdo %s/\s\+$//e | w
Posted to
Vim function to unminify javascript
over 1 year
ago
wow!!! works great!
Achievements
107 Karma
0 Total ProTip Views
Epidexipteryx
Have at least one original repo where C++ is the dominant language
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
T-Rex
Have at least one original repo where C is the dominant language
Altruist
Increase developer well-being by sharing at least 20 open source projects
Raven
Have at least one original repo where some form of shell script is the dominant language
Komodo Dragon
Have at least one original repo where Java is the dominant language
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Nephila Komaci 3
Have at least three original repos where PHP is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Forked
Have a project valued enough to be forked by someone else
Bear
Have at least one original repo where Objective-C is the dominant language
@kormie another issue I see is that this will fail for paths with spaces and it also messes up the terminal after you close vim. to fix both of these issues you should change the code to the following.