irishprime / whitewash.vim Goto Github PK
View Code? Open in Web Editor NEWRemove excessive white space from files.
Remove excessive white space from files.
The regular expression used to decide whether or not to insert a space after a comma correctly operates on lists of numbers which are fewer than three digits (e.g. 1,23,45,6,7
), correctly skips numbers like 1,000
, but incorrectly skips lists of numbers which are 3 or more digits (e.g. 1000,10001,1002
).
Add a space after commas which are followed by non-whitespace characters, ideally excluding digits.
Useful for cleaning up when people cram all their arguments together (e.g. foo(bar,baz,boo)
is better written as foo(bar, baz, boo)
).
Take care not to screw up large numbers, though (e.g. 1,234,456,789
).
It may also be worthwhile to call this whenever :WhiteWash
is called depending on user options.
Vim has great help and documentation in the form of :help
. Take advantage of that.
See :help helphelp
for reference.
The :WhiteWash
command should be able to operate on a range rather than just the entire buffer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.