Skip to content

Commit 0cadd4a

Browse files
committed
[CODING_STYLE] Add vim modeline
Add my vim recipe that most closely matches the coding style. If you can improve it, please do so!
1 parent 22de0f6 commit 0cadd4a

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

CODING_STYLE

+15-1
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,23 @@ In general, be wary of performing any arithmetic operations in an
269269
argument to malloc. You should explicitly check for integer overflow
270270
yourself in any more complex situations.
271271

272+
Mode lines
273+
----------
274+
275+
So given the rules above, what is the best way to simplify one's life as
276+
a code monkey? Get your editor to do most of the tedious work of
277+
beautifying your code!
278+
279+
As a reward for reading this far, here are some mode lines for the more
280+
popular editors:
281+
/*
282+
* vim:sw=4:sts=4:ts=8:tw=78:fo=tcroq:cindent:cino=\:0,(0
283+
* vim:isk=a-z,A-Z,48-57,_,.,-,>
284+
*/
285+
272286

273287
TODO
274288
----
275289

276290
Write rules for common editors to use this style. Also cleanup/unify
277-
the modlines in the source files.
291+
the modelines in the source files.

0 commit comments

Comments
 (0)